org.nuxeo.ecm.automation.client.jaxrs.spi
Class DefaultOperationRequest
java.lang.Object
org.nuxeo.ecm.automation.client.jaxrs.spi.DefaultOperationRequest
- All Implemented Interfaces:
- OperationRequest
public class DefaultOperationRequest
- extends Object
- implements OperationRequest
- Author:
- Bogdan Stefanescu
DefaultOperationRequest
public DefaultOperationRequest(DefaultSession session,
OperationDocumentation op)
DefaultOperationRequest
public DefaultOperationRequest(DefaultSession session,
OperationDocumentation op,
Map<String,Object> ctx)
getSession
public DefaultSession getSession()
- Specified by:
getSession
in interface OperationRequest
getParamNames
public List<String> getParamNames()
getParam
public OperationDocumentation.Param getParam(String key)
setInput
public OperationRequest setInput(OperationInput input)
- Specified by:
setInput
in interface OperationRequest
getInput
public OperationInput getInput()
- Specified by:
getInput
in interface OperationRequest
getUrl
public String getUrl()
- Specified by:
getUrl
in interface OperationRequest
set
public OperationRequest set(String key,
Object value)
- Specified by:
set
in interface OperationRequest
setContextProperty
public OperationRequest setContextProperty(String key,
Object value)
- Specified by:
setContextProperty
in interface OperationRequest
getContextParameters
public Map<String,Object> getContextParameters()
- Specified by:
getContextParameters
in interface OperationRequest
getParameters
public Map<String,Object> getParameters()
- Specified by:
getParameters
in interface OperationRequest
execute
public Object execute()
throws Exception
- Specified by:
execute
in interface OperationRequest
- Throws:
Exception
execute
public void execute(AsyncCallback<Object> cb)
- Specified by:
execute
in interface OperationRequest
setHeader
public OperationRequest setHeader(String key,
String value)
- Specified by:
setHeader
in interface OperationRequest
getHeaders
public Map<String,String> getHeaders()
- Specified by:
getHeaders
in interface OperationRequest
getOperation
public OperationDocumentation getOperation()
- Description copied from interface:
OperationRequest
- Get the ID of the operation to be invoked
- Specified by:
getOperation
in interface OperationRequest
- Returns:
Copyright © 2011 Nuxeo SAS. All Rights Reserved.