public final class EngineRequest extends Object
This class represents a request to be indicated to an engine.
The user which invokes NodeEngine.parse(EngineRequest)
should indicates in the parameter the nuts
to be parsed and the context path to use to expose the generated nuts.
Modifier and Type | Class and Description |
---|---|
static class |
EngineRequest.Key
This class overrides
Object.equals(Object) and Object.hashCode() to represent an unique key
per EngineRequest based on its workflow ID and its nuts. |
Modifier and Type | Method and Description |
---|---|
EngineType[] |
alsoSkip(EngineType... type)
Returns an array containing all items of
EngineRequestBuilder.skip and also the specified types. |
NodeEngine |
getChainFor(NutType nutType)
Gets the chains which can treat nuts of the given
NutType . |
String |
getContextPath()
Gets the context path.
|
NutsHeap |
getHeap()
Returns the heap.
|
NutsHeap |
getHeap(String workflowId)
Gets the heap associated to the given workflow.
|
EngineRequest.Key |
getKey()
Creates a new key that identifies this request if
null and return it. |
List<ConvertibleNut> |
getNuts()
Gets the nuts.
|
String |
getPrefixCreatedNut()
Returns the prefix created nut
|
ProcessContext |
getProcessContext()
Gets the
ProcessContext . |
UrlProviderFactory |
getUrlProviderFactory()
Gets the
UrlProviderFactory . |
String |
getWorkflowId()
Gets the workflow ID.
|
boolean |
isBestEffort()
Indicates if this request requires best effort mode.
|
boolean |
isExcludedFromSpriteComputation(Nut nut)
Indicates if the given nut should be excluded from any sprite computation.
|
boolean |
isStaticsServedByWuicServlet()
Indicates if result is served by WUIC servlet.
|
Iterator<List<? extends ConvertibleNut>> |
iterator()
Creates a new iterator on the
nuts . |
boolean |
shouldSkip(EngineType engineType)
Indicates if an engine of the given type should skip its treatment when this request is submitted.
|
String |
toString() |
public String getPrefixCreatedNut()
Returns the prefix created nut
public List<ConvertibleNut> getNuts()
Gets the nuts.
public String getContextPath()
Gets the context path.
public NutsHeap getHeap()
Returns the heap.
public String getWorkflowId()
Gets the workflow ID.
public Iterator<List<? extends ConvertibleNut>> iterator()
Creates a new iterator on the nuts
.
public NodeEngine getChainFor(NutType nutType)
Gets the chains which can treat nuts of the given NutType
.
nutType
- the nut typepublic boolean shouldSkip(EngineType engineType)
Indicates if an engine of the given type should skip its treatment when this request is submitted.
engineType
- the EngineType
true
if treatment should be skipped, false
otherwise.public boolean isBestEffort()
Indicates if this request requires best effort mode.
true
if the request requires best effort, false
otherwisepublic boolean isStaticsServedByWuicServlet()
Indicates if result is served by WUIC servlet.
true
if statics are served by WUIC servlet, false
otherwisepublic EngineRequest.Key getKey()
Creates a new key that identifies this request if null
and return it.
public UrlProviderFactory getUrlProviderFactory()
Gets the UrlProviderFactory
.
public ProcessContext getProcessContext()
Gets the ProcessContext
.
public EngineType[] alsoSkip(EngineType... type)
Returns an array containing all items of EngineRequestBuilder.skip
and also the specified types.
type
- the array to addpublic NutsHeap getHeap(String workflowId) throws WorkflowNotFoundException
Gets the heap associated to the given workflow.
workflowId
- the workflow IDWorkflowNotFoundException
- if workflow has not been foundpublic boolean isExcludedFromSpriteComputation(Nut nut)
Indicates if the given nut should be excluded from any sprite computation.
nut
- the nut to exclude or nottrue
if nut is excluded, false
otherwiseCopyright © 2012-2015. All Rights Reserved.