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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields 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 org.apache.camel.EndpointcreateRawClientFor(SalesforceEndpoint endpoint) createRestClientFor(SalesforceEndpoint endpoint) protected voiddoBuild()protected voiddoStart()protected voiddoStop()longlonglongorg.apache.camel.support.jsse.KeyStoreParametersString[]intorg.apache.camel.support.jsse.SSLContextParametersintintbooleanbooleanbooleanbooleanbooleanvoidsetAuthenticationType(AuthenticationType authenticationType) voidsetClientId(String clientId) voidsetClientSecret(String clientSecret) voidsetConfig(SalesforceEndpointConfig config) voidsetHttpClientConnectionTimeout(long httpClientConnectionTimeout) voidsetHttpClientIdleTimeout(long httpClientIdleTimeout) voidsetHttpClientProperties(Map<String, Object> httpClientProperties) voidsetHttpMaxContentLength(Integer httpMaxContentLength) voidsetHttpProxyAuthUri(String httpProxyAuthUri) voidsetHttpProxyExcludedAddresses(Set<String> httpProxyExcludedAddresses) voidsetHttpProxyHost(String httpProxyHost) voidsetHttpProxyIncludedAddresses(Set<String> httpProxyIncludedAddresses) voidsetHttpProxyPassword(String httpProxyPassword) voidsetHttpProxyPort(Integer httpProxyPort) voidsetHttpProxyRealm(String httpProxyRealm) voidsetHttpProxySecure(boolean isHttpProxySecure) voidsetHttpProxySocks4(boolean isHttpProxySocks4) voidsetHttpProxyUseDigestAuth(boolean httpProxyUseDigestAuth) voidsetHttpProxyUsername(String httpProxyUsername) voidsetHttpRequestBufferSize(Integer httpRequestBufferSize) voidsetHttpRequestTimeout(long httpRequestTimeout) voidsetInstanceUrl(String instanceUrl) voidsetJwtAudience(String jwtAudience) voidsetKeystore(org.apache.camel.support.jsse.KeyStoreParameters keystore) voidsetLazyLogin(boolean lazyLogin) voidsetLoginConfig(SalesforceLoginConfig loginConfig) voidsetLoginUrl(String loginUrl) voidsetLongPollingTransportProperties(Map<String, Object> longPollingTransportProperties) voidsetPackages(String packages) voidsetPassword(String password) voidsetPubSubHost(String pubSubHost) voidsetPubSubPort(int pubSubPort) voidsetRefreshToken(String refreshToken) voidsetSslContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters) voidsetUseGlobalSslContextParameters(boolean useGlobalSslContextParameters) voidsetUserName(String userName) voidsetWorkerPoolMaxSize(int workerPoolMaxSize) voidsetWorkerPoolSize(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, validateURIMethods 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, suspendMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.CamelContextAware
setCamelContextMethods inherited from interface org.apache.camel.spi.HasCamelContext
getCamelContextMethods 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.SSLContextParametersAware
retrieveGlobalSslContextParametersMethods 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
-
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:
createEndpointin classorg.apache.camel.support.DefaultComponent- Throws:
Exception
-
getHttpClient
-
doBuild
- Overrides:
doBuildin classorg.apache.camel.support.DefaultComponent- Throws:
Exception
-
doStart
- Overrides:
doStartin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
doStop
- Overrides:
doStopin 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:
isUseGlobalSslContextParametersin interfaceorg.apache.camel.SSLContextParametersAware
-
setUseGlobalSslContextParameters
public void setUseGlobalSslContextParameters(boolean useGlobalSslContextParameters) - Specified by:
setUseGlobalSslContextParametersin 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
-