Class JsonRestProcessor
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.component.salesforce.internal.processor.AbstractSalesforceProcessor
org.apache.camel.component.salesforce.internal.processor.AbstractRestProcessor
org.apache.camel.component.salesforce.internal.processor.JsonRestProcessor
- All Implemented Interfaces:
AutoCloseable
,SalesforceProcessor
,org.apache.camel.Service
,org.apache.camel.ShutdownableService
,org.apache.camel.StatefulService
,org.apache.camel.SuspendableService
-
Field Summary
Fields inherited from class org.apache.camel.component.salesforce.internal.processor.AbstractRestProcessor
RESPONSE_CLASS, RESPONSE_CLASS_DEFERRED, RESPONSE_CLASS_PREFIX, RESPONSE_TYPE, restClient
Fields inherited from class org.apache.camel.component.salesforce.internal.processor.AbstractSalesforceProcessor
classMap, endpoint, endpointConfigMap, eventClassMap, httpClient, IGNORE_BODY, IS_OPTIONAL, log, loginConfig, NOT_OPTIONAL, operationName, rawPayload, session, USE_BODY
Fields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected InputStream
getRequestStream
(org.apache.camel.Exchange exchange) protected InputStream
getRequestStream
(org.apache.camel.Message in, Object object) ReturnsInputStream
to serialized form of the given object.protected void
processRequest
(org.apache.camel.Exchange exchange) protected void
processResponse
(org.apache.camel.Exchange exchange, InputStream responseEntity, Map<String, String> headers, SalesforceException ex, org.apache.camel.AsyncCallback callback) protected void
processStreamResultResponse
(org.apache.camel.Exchange exchange, InputStream responseEntity, Map<String, String> headers, SalesforceException ex, org.apache.camel.AsyncCallback callback) Methods inherited from class org.apache.camel.component.salesforce.internal.processor.AbstractRestProcessor
doStart, doStop, process, setResponseClass
Methods inherited from class org.apache.camel.component.salesforce.internal.processor.AbstractSalesforceProcessor
getListParameter, getParameter, getParameter, getSObjectClass, getSObjectClass
Methods inherited from class org.apache.camel.support.service.BaseService
build, 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, suspend
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.camel.component.salesforce.internal.processor.SalesforceProcessor
determineHeaders
Methods inherited from interface org.apache.camel.Service
build, close, init, start, stop
Methods inherited from interface org.apache.camel.ShutdownableService
shutdown
Methods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending
Methods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Constructor Details
-
JsonRestProcessor
- Throws:
SalesforceException
-
-
Method Details
-
processRequest
- Specified by:
processRequest
in classAbstractRestProcessor
- Throws:
SalesforceException
-
getRequestStream
protected InputStream getRequestStream(org.apache.camel.Exchange exchange) throws SalesforceException - Specified by:
getRequestStream
in classAbstractRestProcessor
- Throws:
SalesforceException
-
getRequestStream
protected InputStream getRequestStream(org.apache.camel.Message in, Object object) throws SalesforceException Description copied from class:AbstractRestProcessor
ReturnsInputStream
to serialized form of the given object.- Specified by:
getRequestStream
in classAbstractRestProcessor
object
- object to serialize- Returns:
- stream to read serialized object from
- Throws:
SalesforceException
-
processResponse
protected void processResponse(org.apache.camel.Exchange exchange, InputStream responseEntity, Map<String, String> headers, SalesforceException ex, org.apache.camel.AsyncCallback callback) - Specified by:
processResponse
in classAbstractRestProcessor
-
processStreamResultResponse
protected void processStreamResultResponse(org.apache.camel.Exchange exchange, InputStream responseEntity, Map<String, String> headers, SalesforceException ex, org.apache.camel.AsyncCallback callback) - Specified by:
processStreamResultResponse
in classAbstractRestProcessor
-