public class DefaultOperationRequest extends Object implements OperationRequest
Modifier and Type | Field and Description |
---|---|
protected Map<String,Object> |
ctx |
protected Map<String,String> |
headers |
protected Object |
input |
protected OperationDocumentation |
op |
protected Map<String,Object> |
params |
protected DefaultSession |
session |
Constructor and Description |
---|
DefaultOperationRequest(DefaultSession session,
OperationDocumentation op) |
DefaultOperationRequest(DefaultSession session,
OperationDocumentation op,
Map<String,Object> ctx) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
acceptInput(String type) |
protected void |
checkInput(String type) |
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) |
protected final OperationDocumentation op
protected final DefaultSession session
public DefaultOperationRequest(DefaultSession session, OperationDocumentation op)
public DefaultOperationRequest(DefaultSession session, OperationDocumentation op, Map<String,Object> ctx)
public DefaultSession getSession()
getSession
in interface OperationRequest
protected final boolean acceptInput(String type)
protected final void checkInput(String type)
public List<String> getParamNames()
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 © 2018 Nuxeo. All rights reserved.