public abstract class AbstractSalesforceProcessor extends org.apache.camel.support.service.ServiceSupport implements SalesforceProcessor
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Class<?>> |
classMap |
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 SalesforceLoginConfig |
loginConfig |
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 void |
doStart() |
protected List<String> |
getListParameter(String propName,
org.apache.camel.Exchange exchange,
boolean convertInBody,
boolean optional) |
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).
|
protected Class<?> |
getSObjectClass(String sObjectName,
org.apache.camel.Exchange exchange) |
abstract boolean |
process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doStop, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdetermineHeadersprotected 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 SalesforceSession session
protected SalesforceHttpClient httpClient
protected SalesforceLoginConfig loginConfig
protected boolean rawPayload
public AbstractSalesforceProcessor(SalesforceEndpoint endpoint)
protected void doStart()
throws Exception
doStart in class org.apache.camel.support.service.BaseServiceExceptionpublic 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 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.protected List<String> getListParameter(String propName, org.apache.camel.Exchange exchange, boolean convertInBody, boolean optional) throws SalesforceException
SalesforceExceptionprotected Class<?> getSObjectClass(String sObjectName, org.apache.camel.Exchange exchange) throws SalesforceException
SalesforceExceptionApache Camel