public class DefaultOperationRequest extends Object implements OperationRequest
Constructor and Description |
---|
DefaultOperationRequest(DefaultSession session,
OperationDocumentation op) |
DefaultOperationRequest(DefaultSession 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() |
OperationInput |
getInput() |
OperationDocumentation |
getOperation()
Get the ID of the operation to be invoked
|
OperationDocumentation.Param |
getParam(String key) |
Map<String,Object> |
getParameters() |
List<String> |
getParamNames() |
DefaultSession |
getSession() |
String |
getUrl() |
OperationRequest |
set(String key,
Object value) |
OperationRequest |
setContextProperty(String key,
Object value) |
OperationRequest |
setHeader(String key,
String value) |
OperationRequest |
setInput(OperationInput input) |
public DefaultOperationRequest(DefaultSession session, OperationDocumentation op)
public DefaultOperationRequest(DefaultSession session, OperationDocumentation op, Map<String,Object> ctx)
public DefaultSession getSession()
getSession
in interface OperationRequest
public OperationDocumentation.Param getParam(String key)
public OperationRequest setInput(OperationInput input)
setInput
in interface OperationRequest
public OperationInput 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 © 2011 Nuxeo SA. All Rights Reserved.