public class JavaOperationRequest extends Object implements OperationRequest
Constructor and Description |
---|
JavaOperationRequest(JavaSession session,
OperationDocumentation op) |
JavaOperationRequest(JavaSession session,
OperationDocumentation op,
Map<String,Object> ctx) |
Modifier and Type | Method and Description |
---|---|
Object |
execute() |
void |
execute(AsyncCallback<Object> cb) |
Map<String,Object> |
getContextParameters() |
Map<String,String> |
getHeaders() |
Object |
getInput() |
OperationDocumentation |
getOperation()
Get the ID of the operation to be invoked
|
OperationDocumentation.Param |
getParam(String key) |
Map<String,Object> |
getParameters() |
List<String> |
getParamNames() |
JavaSession |
getSession() |
String |
getUrl() |
OperationRequest |
set(String key,
Object value) |
OperationRequest |
setContextProperty(String key,
Object value) |
OperationRequest |
setHeader(String key,
String value) |
OperationRequest |
setInput(Object input) |
public JavaOperationRequest(JavaSession session, OperationDocumentation op)
public JavaOperationRequest(JavaSession session, OperationDocumentation op, Map<String,Object> ctx)
public JavaSession getSession()
getSession
in interface OperationRequest
public OperationDocumentation.Param getParam(String key)
public OperationRequest setInput(Object input)
setInput
in interface OperationRequest
public Object getInput()
getInput
in interface OperationRequest
public String getUrl()
getUrl
in interface OperationRequest
public OperationRequest set(String key, Object value)
set
in interface OperationRequest
public OperationRequest setContextProperty(String key, Object value)
setContextProperty
in interface OperationRequest
public Map<String,Object> getContextParameters()
getContextParameters
in interface OperationRequest
public Map<String,Object> getParameters()
getParameters
in interface OperationRequest
public Object execute() throws Exception
execute
in interface OperationRequest
Exception
public void execute(AsyncCallback<Object> cb)
execute
in interface OperationRequest
public OperationRequest setHeader(String key, String value)
setHeader
in interface OperationRequest
public Map<String,String> getHeaders()
getHeaders
in interface OperationRequest
public OperationDocumentation getOperation()
OperationRequest
getOperation
in interface OperationRequest
Copyright © 2013 Nuxeo SA. All Rights Reserved.