Class AbstractRestProcessor
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
- All Implemented Interfaces:
AutoCloseable,SalesforceProcessor,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.StatefulService,org.apache.camel.SuspendableService
- Direct Known Subclasses:
JsonRestProcessor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected RestClientFields 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_BODYFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoStart()protected voiddoStop()protected abstract InputStreamgetRequestStream(org.apache.camel.Exchange exchange) protected abstract InputStreamgetRequestStream(org.apache.camel.Message in, Object object) ReturnsInputStreamto serialized form of the given object.final booleanprocess(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback) protected abstract voidprocessRequest(org.apache.camel.Exchange exchange) protected abstract voidprocessResponse(org.apache.camel.Exchange exchange, InputStream responseEntity, Map<String, String> headers, SalesforceException ex, org.apache.camel.AsyncCallback callback) protected abstract voidprocessStreamResultResponse(org.apache.camel.Exchange exchange, InputStream responseEntity, Map<String, String> headers, SalesforceException ex, org.apache.camel.AsyncCallback callback) protected voidsetResponseClass(org.apache.camel.Exchange exchange) Methods inherited from class org.apache.camel.component.salesforce.internal.processor.AbstractSalesforceProcessor
getListParameter, getParameter, getParameter, getSObjectClass, getSObjectClassMethods 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, suspendMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.component.salesforce.internal.processor.SalesforceProcessor
determineHeadersMethods inherited from interface org.apache.camel.Service
build, close, init, start, stopMethods inherited from interface org.apache.camel.ShutdownableService
shutdownMethods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Field Details
-
RESPONSE_CLASS
-
RESPONSE_CLASS_DEFERRED
-
RESPONSE_CLASS_PREFIX
-
RESPONSE_TYPE
-
restClient
-
-
Constructor Details
-
AbstractRestProcessor
-
-
Method Details
-
doStart
- Overrides:
doStartin classAbstractSalesforceProcessor- Throws:
Exception
-
doStop
- Overrides:
doStopin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
process
public final boolean process(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback) - Specified by:
processin interfaceSalesforceProcessor- Specified by:
processin classAbstractSalesforceProcessor
-
processRequest
protected abstract void processRequest(org.apache.camel.Exchange exchange) throws SalesforceException - Throws:
SalesforceException
-
getRequestStream
protected abstract InputStream getRequestStream(org.apache.camel.Exchange exchange) throws SalesforceException - Throws:
SalesforceException
-
getRequestStream
protected abstract InputStream getRequestStream(org.apache.camel.Message in, Object object) throws SalesforceException ReturnsInputStreamto serialized form of the given object.- Parameters:
object- object to serialize- Returns:
- stream to read serialized object from
- Throws:
SalesforceException
-
setResponseClass
- Throws:
SalesforceException
-
processResponse
protected abstract void processResponse(org.apache.camel.Exchange exchange, InputStream responseEntity, Map<String, String> headers, SalesforceException ex, org.apache.camel.AsyncCallback callback) -
processStreamResultResponse
protected abstract void processStreamResultResponse(org.apache.camel.Exchange exchange, InputStream responseEntity, Map<String, String> headers, SalesforceException ex, org.apache.camel.AsyncCallback callback)
-