public abstract class AbstractSalesforceProcessor extends Object implements SalesforceProcessor
| Modifier and Type | Field and Description |
|---|---|
protected SalesforceEndpoint |
endpoint |
protected Map<String,String> |
endpointConfigMap |
protected org.eclipse.jetty.client.HttpClient |
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 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 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) |
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 org.eclipse.jetty.client.HttpClient httpClient
public AbstractSalesforceProcessor(SalesforceEndpoint endpoint)
public abstract boolean process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback)
process in interface SalesforceProcessorprotected 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.Apache Camel