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 OperationRequestprotected 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 OperationRequestpublic Object getInput()
getInput in interface OperationRequestpublic String getUrl()
getUrl in interface OperationRequestpublic OperationRequest set(String key, Object value)
set in interface OperationRequestpublic OperationRequest setContextProperty(String key, Object value)
setContextProperty in interface OperationRequestpublic Map<String,Object> getContextParameters()
getContextParameters in interface OperationRequestpublic Map<String,Object> getParameters()
getParameters in interface OperationRequestpublic Object execute() throws IOException
execute in interface OperationRequestIOExceptionpublic OperationRequest setHeader(String key, String value)
setHeader in interface OperationRequestpublic Map<String,String> getHeaders()
getHeaders in interface OperationRequestpublic OperationDocumentation getOperation()
OperationRequestgetOperation in interface OperationRequestCopyright © 2018 Nuxeo. All rights reserved.