public abstract class AbstractSalesforceProcessor extends Object implements SalesforceProcessor
Modifier and Type | Field and Description |
---|---|
protected SalesforceEndpoint |
endpoint |
protected Map<String,Object> |
endpointConfigMap |
protected SalesforceHttpClient |
httpClient |
protected static boolean |
IGNORE_BODY |
protected static boolean |
IS_OPTIONAL |
protected org.slf4j.Logger |
log |
protected static boolean |
NOT_OPTIONAL |
protected OperationName |
operationName |
protected boolean |
rawPayload |
protected SalesforceSession |
session |
protected static boolean |
USE_BODY |
Constructor and Description |
---|
AbstractSalesforceProcessor(SalesforceEndpoint endpoint) |
Modifier and Type | Method and Description |
---|---|
protected String |
getParameter(String propName,
org.apache.camel.Exchange exchange,
boolean convertInBody,
boolean optional)
Gets String value for a parameter from header, endpoint config, or
exchange body (optional).
|
protected <T> T |
getParameter(String propName,
org.apache.camel.Exchange exchange,
boolean convertInBody,
boolean optional,
Class<T> parameterClass)
Gets value for a parameter from header, endpoint config, or exchange body (optional).
|
abstract boolean |
process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
determineHeaders
protected static final boolean NOT_OPTIONAL
protected static final boolean IS_OPTIONAL
protected static final boolean USE_BODY
protected static final boolean IGNORE_BODY
protected final org.slf4j.Logger log
protected final SalesforceEndpoint endpoint
protected final OperationName operationName
protected final SalesforceSession session
protected final SalesforceHttpClient httpClient
protected final boolean rawPayload
public AbstractSalesforceProcessor(SalesforceEndpoint endpoint)
public abstract boolean process(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback)
process
in interface SalesforceProcessor
protected final String getParameter(String propName, org.apache.camel.Exchange exchange, boolean convertInBody, boolean optional) throws SalesforceException
exchange
- exchange to inspectconvertInBody
- converts In body to String value if truepropName
- name of propertyoptional
- if true
returns null, otherwise throws RestExceptionnull
for optional parameters if not found.SalesforceException
- if the property can't be found or on conversion errors.protected final <T> T getParameter(String propName, org.apache.camel.Exchange exchange, boolean convertInBody, boolean optional, Class<T> parameterClass) throws SalesforceException
exchange
- exchange to inspectconvertInBody
- converts In body to parameterClass value if truepropName
- name of propertyoptional
- if true
returns null, otherwise throws RestExceptionparameterClass
- parameter typenull
for optional parameters if not found.SalesforceException
- if the property can't be found or on conversion errors.Apache Camel