Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.automation.client.jaxrs.spi
Class DefaultOperationRequest

java.lang.Object
  extended by org.nuxeo.ecm.automation.client.jaxrs.spi.DefaultOperationRequest
All Implemented Interfaces:
OperationRequest

public class DefaultOperationRequest
extends Object
implements OperationRequest

Author:
Bogdan Stefanescu

Constructor Summary
DefaultOperationRequest(DefaultSession session, OperationDocumentation op)
           
DefaultOperationRequest(DefaultSession session, OperationDocumentation op, Map<String,Object> ctx)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultOperationRequest

public DefaultOperationRequest(DefaultSession session,
                               OperationDocumentation op)

DefaultOperationRequest

public DefaultOperationRequest(DefaultSession session,
                               OperationDocumentation op,
                               Map<String,Object> ctx)
Method Detail

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:

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.