public class FunctionRequest extends Object
Constructor and Description |
---|
FunctionRequest(String functionName,
Map<String,String> parameters,
Element dataElement)
Creates a new
FunctionRequest . |
FunctionRequest(String functionName,
Map<String,String> parameters,
Element dataElement,
Map<String,Object> backpack)
Creates a new
FunctionRequest . |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getBackpack()
Gets the backpack.
|
Element |
getDataElement()
Gets the data section of the request.
|
String |
getFunctionName()
Gets the name of the function.
|
Map<String,String> |
getParameters()
Gets the parameters of the function.
|
boolean |
shouldSkipFunctionCall()
Gets whether the function should be executed or not.
|
public FunctionRequest(String functionName, Map<String,String> parameters, Element dataElement) throws IllegalArgumentException
FunctionRequest
. The function name must be
specified.functionName
- the name of the function, cannot be null
.parameters
- the parameters of the function requested, cannot be
null
.dataElement
- the data section of the input request, can be null
.IllegalArgumentException
- if functionName == null
.public FunctionRequest(String functionName, Map<String,String> parameters, Element dataElement, Map<String,Object> backpack) throws IllegalArgumentException
FunctionRequest
. The function name must be
specified.functionName
- the name of the function, cannot be null
.parameters
- the parameters of the function requested, cannot be
null
.dataElement
- the data section of the input request, can be null
.backpack
- the container containing information for the XINS engine or the function.IllegalArgumentException
- if functionName == null
.public String getFunctionName()
null
.public Map<String,String> getParameters()
Map
instance is unmodifiable.null
.public Element getDataElement()
null
if there is none.public boolean shouldSkipFunctionCall()
true
if the function shouldn't be executed, false
otherwise.See http://www.xins.org/.