org.camunda.connect.impl
Class AbstractConnectorResponse

java.lang.Object
  extended by org.camunda.connect.impl.AbstractConnectorResponse
All Implemented Interfaces:
ConnectorResponse
Direct Known Subclasses:
AbstractCloseableConnectorResponse

public abstract class AbstractConnectorResponse
extends Object
implements ConnectorResponse

Author:
Daniel Meyer

Field Summary
protected  Map<String,Object> responseParameters
           
 
Constructor Summary
AbstractConnectorResponse()
           
 
Method Summary
protected abstract  void collectResponseParameters(Map<String,Object> responseParameters)
          To be implemented by subclasses for collecting the generic response parameters of a response.
<V> V
getResponseParameter(String name)
          Returns the value of a response parameter or 'null' if no such parameter is set.
 Map<String,Object> getResponseParameters()
          Retrieves the map of output parameters from the response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

responseParameters

protected Map<String,Object> responseParameters
Constructor Detail

AbstractConnectorResponse

public AbstractConnectorResponse()
Method Detail

getResponseParameters

public Map<String,Object> getResponseParameters()
Description copied from interface: ConnectorResponse
Retrieves the map of output parameters from the response.

Specified by:
getResponseParameters in interface ConnectorResponse
Returns:
the map of output parameters.

getResponseParameter

public <V> V getResponseParameter(String name)
Description copied from interface: ConnectorResponse
Returns the value of a response parameter or 'null' if no such parameter is set.

Specified by:
getResponseParameter in interface ConnectorResponse
Parameters:
name - the name of the response parameter
Returns:
the value of the response parameter of null.

collectResponseParameters

protected abstract void collectResponseParameters(Map<String,Object> responseParameters)
To be implemented by subclasses for collecting the generic response parameters of a response.

Parameters:
responseParameters - a map to save the response parameters in


Copyright © 2015 camunda services GmbH. All rights reserved.