Class SalesforceComponent
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.DefaultComponent
org.apache.camel.component.salesforce.SalesforceComponent
- All Implemented Interfaces:
AutoCloseable
,org.apache.camel.CamelContextAware
,org.apache.camel.Component
,org.apache.camel.Service
,org.apache.camel.ShutdownableService
,org.apache.camel.spi.HasCamelContext
,org.apache.camel.SSLContextParametersAware
,org.apache.camel.StatefulService
,org.apache.camel.SuspendableService
@Metadata(label="verifiers",
enums="parameters,connectivity")
@Component("salesforce")
public class SalesforceComponent
extends org.apache.camel.support.DefaultComponent
implements org.apache.camel.SSLContextParametersAware
Represents the component that manages
SalesforceEndpoint
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
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 org.apache.camel.Endpoint
createRawClientFor
(SalesforceEndpoint endpoint) createRestClientFor
(SalesforceEndpoint endpoint) protected void
doBuild()
protected void
doStart()
protected void
doStop()
long
long
long
org.apache.camel.support.jsse.KeyStoreParameters
String[]
int
org.apache.camel.support.jsse.SSLContextParameters
int
int
boolean
boolean
boolean
boolean
boolean
void
setAuthenticationType
(AuthenticationType authenticationType) void
setClientId
(String clientId) void
setClientSecret
(String clientSecret) void
setConfig
(SalesforceEndpointConfig config) void
setHttpClientConnectionTimeout
(long httpClientConnectionTimeout) void
setHttpClientIdleTimeout
(long httpClientIdleTimeout) void
setHttpClientProperties
(Map<String, Object> httpClientProperties) void
setHttpMaxContentLength
(Integer httpMaxContentLength) void
setHttpProxyAuthUri
(String httpProxyAuthUri) void
setHttpProxyExcludedAddresses
(Set<String> httpProxyExcludedAddresses) void
setHttpProxyHost
(String httpProxyHost) void
setHttpProxyIncludedAddresses
(Set<String> httpProxyIncludedAddresses) void
setHttpProxyPassword
(String httpProxyPassword) void
setHttpProxyPort
(Integer httpProxyPort) void
setHttpProxyRealm
(String httpProxyRealm) void
setHttpProxySecure
(boolean isHttpProxySecure) void
setHttpProxySocks4
(boolean isHttpProxySocks4) void
setHttpProxyUseDigestAuth
(boolean httpProxyUseDigestAuth) void
setHttpProxyUsername
(String httpProxyUsername) void
setHttpRequestBufferSize
(Integer httpRequestBufferSize) void
setHttpRequestTimeout
(long httpRequestTimeout) void
setInstanceUrl
(String instanceUrl) void
setJwtAudience
(String jwtAudience) void
setKeystore
(org.apache.camel.support.jsse.KeyStoreParameters keystore) void
setLazyLogin
(boolean lazyLogin) void
setLoginConfig
(SalesforceLoginConfig loginConfig) void
setLoginUrl
(String loginUrl) void
setLongPollingTransportProperties
(Map<String, Object> longPollingTransportProperties) void
setPackages
(String packages) void
setPassword
(String password) void
setPubSubHost
(String pubSubHost) void
setPubSubPort
(int pubSubPort) void
setRefreshToken
(String refreshToken) void
setSslContextParameters
(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters) void
setUseGlobalSslContextParameters
(boolean useGlobalSslContextParameters) void
setUserName
(String userName) void
setWorkerPoolMaxSize
(int workerPoolMaxSize) void
setWorkerPoolSize
(int workerPoolSize) Methods inherited from class org.apache.camel.support.DefaultComponent
afterConfiguration, createEndpoint, createEndpoint, doInit, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getComponentPropertyConfigurer, getDefaultName, getEndpointPropertyConfigurer, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, resolveRawParameterValues, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setLazyStartProducer, setProperties, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURI
Methods inherited from class org.apache.camel.support.service.BaseService
build, doFail, 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.CamelContextAware
setCamelContext
Methods inherited from interface org.apache.camel.spi.HasCamelContext
getCamelContext
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.SSLContextParametersAware
retrieveGlobalSslContextParameters
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
-
Field Details
-
HTTP_PROXY_HOST
- See Also:
-
HTTP_PROXY_PORT
- See Also:
-
HTTP_PROXY_IS_SOCKS4
- See Also:
-
HTTP_PROXY_IS_SECURE
- See Also:
-
HTTP_PROXY_INCLUDE
- See Also:
-
HTTP_PROXY_EXCLUDE
- See Also:
-
HTTP_PROXY_USERNAME
- See Also:
-
HTTP_PROXY_PASSWORD
- See Also:
-
HTTP_PROXY_USE_DIGEST_AUTH
- See Also:
-
HTTP_PROXY_AUTH_URI
- See Also:
-
HTTP_PROXY_REALM
- See Also:
-
HTTP_CONNECTION_TIMEOUT
- See Also:
-
HTTP_IDLE_TIMEOUT
- See Also:
-
HTTP_REQUEST_TIMEOUT
- See Also:
-
HTTP_MAX_CONTENT_LENGTH
- See Also:
-
HTTP_REQUEST_BUFFER_SIZE
- See Also:
-
-
Constructor Details
-
SalesforceComponent
public SalesforceComponent() -
SalesforceComponent
public SalesforceComponent(org.apache.camel.CamelContext context)
-
-
Method Details
-
createEndpoint
protected org.apache.camel.Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception- Specified by:
createEndpoint
in classorg.apache.camel.support.DefaultComponent
- Throws:
Exception
-
getHttpClient
-
doBuild
- Overrides:
doBuild
in classorg.apache.camel.support.DefaultComponent
- Throws:
Exception
-
doStart
- Overrides:
doStart
in classorg.apache.camel.support.service.BaseService
- Throws:
Exception
-
doStop
- Overrides:
doStop
in classorg.apache.camel.support.service.BaseService
- Throws:
Exception
-
getSubscriptionHelper
- Throws:
Exception
-
getAuthenticationType
-
setAuthenticationType
-
getLoginConfig
-
setLoginConfig
-
setInstanceUrl
-
getInstanceUrl
-
getLoginUrl
-
setLoginUrl
-
getClientId
-
setClientId
-
getClientSecret
-
setClientSecret
-
setKeystore
public void setKeystore(org.apache.camel.support.jsse.KeyStoreParameters keystore) -
getKeystore
public org.apache.camel.support.jsse.KeyStoreParameters getKeystore() -
getJwtAudience
-
setJwtAudience
-
getRefreshToken
-
setRefreshToken
-
getUserName
-
setUserName
-
getPassword
-
setPassword
-
isLazyLogin
public boolean isLazyLogin() -
setLazyLogin
public void setLazyLogin(boolean lazyLogin) -
getPubSubHost
-
setPubSubHost
-
getPubSubPort
public int getPubSubPort() -
setPubSubPort
public void setPubSubPort(int pubSubPort) -
getConfig
-
setConfig
-
getHttpClientProperties
-
setHttpClientProperties
-
getLongPollingTransportProperties
-
setLongPollingTransportProperties
-
getSslContextParameters
public org.apache.camel.support.jsse.SSLContextParameters getSslContextParameters() -
setSslContextParameters
public void setSslContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters) -
isUseGlobalSslContextParameters
public boolean isUseGlobalSslContextParameters()- Specified by:
isUseGlobalSslContextParameters
in interfaceorg.apache.camel.SSLContextParametersAware
-
setUseGlobalSslContextParameters
public void setUseGlobalSslContextParameters(boolean useGlobalSslContextParameters) - Specified by:
setUseGlobalSslContextParameters
in interfaceorg.apache.camel.SSLContextParametersAware
-
getHttpClientIdleTimeout
public long getHttpClientIdleTimeout() -
setHttpClientIdleTimeout
public void setHttpClientIdleTimeout(long httpClientIdleTimeout) -
getHttpClientConnectionTimeout
public long getHttpClientConnectionTimeout() -
setHttpClientConnectionTimeout
public void setHttpClientConnectionTimeout(long httpClientConnectionTimeout) -
getHttpRequestTimeout
public long getHttpRequestTimeout() -
setHttpRequestTimeout
public void setHttpRequestTimeout(long httpRequestTimeout) -
getHttpMaxContentLength
-
setHttpMaxContentLength
-
getHttpRequestBufferSize
-
setHttpRequestBufferSize
-
getHttpProxyHost
-
setHttpProxyHost
-
getHttpProxyPort
-
setHttpProxyPort
-
getHttpProxyUsername
-
setHttpProxyUsername
-
getHttpProxyPassword
-
setHttpProxyPassword
-
isHttpProxySocks4
public boolean isHttpProxySocks4() -
setHttpProxySocks4
public void setHttpProxySocks4(boolean isHttpProxySocks4) -
isHttpProxySecure
public boolean isHttpProxySecure() -
setHttpProxySecure
public void setHttpProxySecure(boolean isHttpProxySecure) -
getHttpProxyIncludedAddresses
-
setHttpProxyIncludedAddresses
-
getHttpProxyExcludedAddresses
-
setHttpProxyExcludedAddresses
-
getHttpProxyAuthUri
-
setHttpProxyAuthUri
-
getHttpProxyRealm
-
setHttpProxyRealm
-
isHttpProxyUseDigestAuth
public boolean isHttpProxyUseDigestAuth() -
setHttpProxyUseDigestAuth
public void setHttpProxyUseDigestAuth(boolean httpProxyUseDigestAuth) -
getWorkerPoolSize
public int getWorkerPoolSize() -
setWorkerPoolSize
public void setWorkerPoolSize(int workerPoolSize) -
getWorkerPoolMaxSize
public int getWorkerPoolMaxSize() -
setWorkerPoolMaxSize
public void setWorkerPoolMaxSize(int workerPoolMaxSize) -
getPackages
-
setPackages
-
getPackagesAsArray
-
getSession
-
getClassMap
-
getEventClassMap
-
createRestClientFor
- Throws:
SalesforceException
-
createRawClientFor
- Throws:
SalesforceException
-