public abstract class AbstractRestProcessor extends AbstractSalesforceProcessor
| Modifier and Type | Field and Description |
|---|---|
protected static String |
RESPONSE_CLASS |
classMap, endpoint, endpointConfigMap, httpClient, IGNORE_BODY, IS_OPTIONAL, log, loginConfig, NOT_OPTIONAL, operationName, rawPayload, session, USE_BODY| Constructor and Description |
|---|
AbstractRestProcessor(SalesforceEndpoint endpoint) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
protected abstract InputStream |
getRequestStream(org.apache.camel.Exchange exchange) |
protected abstract InputStream |
getRequestStream(org.apache.camel.Message in,
Object object)
Returns
InputStream to serialized form of the given object. |
boolean |
process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
protected abstract void |
processRequest(org.apache.camel.Exchange exchange) |
protected abstract void |
processResponse(org.apache.camel.Exchange exchange,
InputStream responseEntity,
Map<String,String> headers,
SalesforceException ex,
org.apache.camel.AsyncCallback callback) |
getListParameter, getParameter, getParameter, getSObjectClassbuild, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, 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 String RESPONSE_CLASS
public AbstractRestProcessor(SalesforceEndpoint endpoint)
protected void doStart()
throws Exception
doStart in class AbstractSalesforceProcessorExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.service.BaseServiceExceptionpublic final boolean process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback)
process in interface SalesforceProcessorprocess in class AbstractSalesforceProcessorprotected abstract void processRequest(org.apache.camel.Exchange exchange)
throws SalesforceException
SalesforceExceptionprotected abstract InputStream getRequestStream(org.apache.camel.Exchange exchange) throws SalesforceException
SalesforceExceptionprotected abstract InputStream getRequestStream(org.apache.camel.Message in, Object object) throws SalesforceException
InputStream to serialized form of the given object.object - object to serializeSalesforceExceptionprotected abstract void processResponse(org.apache.camel.Exchange exchange,
InputStream responseEntity,
Map<String,String> headers,
SalesforceException ex,
org.apache.camel.AsyncCallback callback)
Apache Camel