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() |
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() |
DefaultSession |
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 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(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 IOException
execute
in interface OperationRequest
IOException
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 © 2015 Nuxeo SA. All rights reserved.