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.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 managesSalesforceEndpoint
.
-
-
Field Summary
Fields Modifier and Type Field Description static String
HTTP_CONNECTION_TIMEOUT
static String
HTTP_IDLE_TIMEOUT
static String
HTTP_MAX_CONTENT_LENGTH
static String
HTTP_PROXY_AUTH_URI
static String
HTTP_PROXY_EXCLUDE
static String
HTTP_PROXY_HOST
static String
HTTP_PROXY_INCLUDE
static String
HTTP_PROXY_IS_SECURE
static String
HTTP_PROXY_IS_SOCKS4
static String
HTTP_PROXY_PASSWORD
static String
HTTP_PROXY_PORT
static String
HTTP_PROXY_REALM
static String
HTTP_PROXY_USE_DIGEST_AUTH
static String
HTTP_PROXY_USERNAME
static String
HTTP_REQUEST_BUFFER_SIZE
static String
HTTP_REQUEST_TIMEOUT
-
Constructor Summary
Constructors Constructor Description SalesforceComponent()
SalesforceComponent(org.apache.camel.CamelContext context)
-
Method Summary
-
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
getCamelContext, setCamelContext
-
Methods inherited from interface org.apache.camel.SSLContextParametersAware
retrieveGlobalSslContextParameters
-
-
-
-
Field Detail
-
HTTP_PROXY_HOST
public static final String HTTP_PROXY_HOST
- See Also:
- Constant Field Values
-
HTTP_PROXY_PORT
public static final String HTTP_PROXY_PORT
- See Also:
- Constant Field Values
-
HTTP_PROXY_IS_SOCKS4
public static final String HTTP_PROXY_IS_SOCKS4
- See Also:
- Constant Field Values
-
HTTP_PROXY_IS_SECURE
public static final String HTTP_PROXY_IS_SECURE
- See Also:
- Constant Field Values
-
HTTP_PROXY_INCLUDE
public static final String HTTP_PROXY_INCLUDE
- See Also:
- Constant Field Values
-
HTTP_PROXY_EXCLUDE
public static final String HTTP_PROXY_EXCLUDE
- See Also:
- Constant Field Values
-
HTTP_PROXY_USERNAME
public static final String HTTP_PROXY_USERNAME
- See Also:
- Constant Field Values
-
HTTP_PROXY_PASSWORD
public static final String HTTP_PROXY_PASSWORD
- See Also:
- Constant Field Values
-
HTTP_PROXY_USE_DIGEST_AUTH
public static final String HTTP_PROXY_USE_DIGEST_AUTH
- See Also:
- Constant Field Values
-
HTTP_PROXY_AUTH_URI
public static final String HTTP_PROXY_AUTH_URI
- See Also:
- Constant Field Values
-
HTTP_PROXY_REALM
public static final String HTTP_PROXY_REALM
- See Also:
- Constant Field Values
-
HTTP_CONNECTION_TIMEOUT
public static final String HTTP_CONNECTION_TIMEOUT
- See Also:
- Constant Field Values
-
HTTP_IDLE_TIMEOUT
public static final String HTTP_IDLE_TIMEOUT
- See Also:
- Constant Field Values
-
HTTP_REQUEST_TIMEOUT
public static final String HTTP_REQUEST_TIMEOUT
- See Also:
- Constant Field Values
-
HTTP_MAX_CONTENT_LENGTH
public static final String HTTP_MAX_CONTENT_LENGTH
- See Also:
- Constant Field Values
-
HTTP_REQUEST_BUFFER_SIZE
public static final String HTTP_REQUEST_BUFFER_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
public SalesforceHttpClient getHttpClient()
-
doBuild
protected void doBuild() throws Exception
- Overrides:
doBuild
in classorg.apache.camel.support.DefaultComponent
- Throws:
Exception
-
doStart
protected void doStart() throws Exception
- Overrides:
doStart
in classorg.apache.camel.support.DefaultComponent
- Throws:
Exception
-
doStop
protected void doStop() throws Exception
- Overrides:
doStop
in classorg.apache.camel.support.DefaultComponent
- Throws:
Exception
-
getSubscriptionHelper
public SubscriptionHelper getSubscriptionHelper() throws Exception
- Throws:
Exception
-
getAuthenticationType
public AuthenticationType getAuthenticationType()
-
setAuthenticationType
public void setAuthenticationType(AuthenticationType authenticationType)
-
getLoginConfig
public SalesforceLoginConfig getLoginConfig()
-
setLoginConfig
public void setLoginConfig(SalesforceLoginConfig loginConfig)
-
setInstanceUrl
public void setInstanceUrl(String instanceUrl)
-
getInstanceUrl
public String getInstanceUrl()
-
getLoginUrl
public String getLoginUrl()
-
setLoginUrl
public void setLoginUrl(String loginUrl)
-
getClientId
public String getClientId()
-
setClientId
public void setClientId(String clientId)
-
getClientSecret
public String getClientSecret()
-
setClientSecret
public void setClientSecret(String clientSecret)
-
setKeystore
public void setKeystore(org.apache.camel.support.jsse.KeyStoreParameters keystore)
-
getKeystore
public org.apache.camel.support.jsse.KeyStoreParameters getKeystore()
-
getJwtAudience
public String getJwtAudience()
-
setJwtAudience
public void setJwtAudience(String jwtAudience)
-
getRefreshToken
public String getRefreshToken()
-
setRefreshToken
public void setRefreshToken(String refreshToken)
-
getUserName
public String getUserName()
-
setUserName
public void setUserName(String userName)
-
getPassword
public String getPassword()
-
setPassword
public void setPassword(String password)
-
isLazyLogin
public boolean isLazyLogin()
-
setLazyLogin
public void setLazyLogin(boolean lazyLogin)
-
getConfig
public SalesforceEndpointConfig getConfig()
-
setConfig
public void setConfig(SalesforceEndpointConfig config)
-
setHttpClientProperties
public void setHttpClientProperties(Map<String,Object> httpClientProperties)
-
setLongPollingTransportProperties
public void setLongPollingTransportProperties(Map<String,Object> longPollingTransportProperties)
-
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
public Integer getHttpMaxContentLength()
-
setHttpMaxContentLength
public void setHttpMaxContentLength(Integer httpMaxContentLength)
-
getHttpRequestBufferSize
public Integer getHttpRequestBufferSize()
-
setHttpRequestBufferSize
public void setHttpRequestBufferSize(Integer httpRequestBufferSize)
-
getHttpProxyHost
public String getHttpProxyHost()
-
setHttpProxyHost
public void setHttpProxyHost(String httpProxyHost)
-
getHttpProxyPort
public Integer getHttpProxyPort()
-
setHttpProxyPort
public void setHttpProxyPort(Integer httpProxyPort)
-
getHttpProxyUsername
public String getHttpProxyUsername()
-
setHttpProxyUsername
public void setHttpProxyUsername(String httpProxyUsername)
-
getHttpProxyPassword
public String getHttpProxyPassword()
-
setHttpProxyPassword
public void setHttpProxyPassword(String httpProxyPassword)
-
isHttpProxySocks4
public boolean isHttpProxySocks4()
-
setHttpProxySocks4
public void setHttpProxySocks4(boolean isHttpProxySocks4)
-
isHttpProxySecure
public boolean isHttpProxySecure()
-
setHttpProxySecure
public void setHttpProxySecure(boolean isHttpProxySecure)
-
setHttpProxyIncludedAddresses
public void setHttpProxyIncludedAddresses(Set<String> httpProxyIncludedAddresses)
-
setHttpProxyExcludedAddresses
public void setHttpProxyExcludedAddresses(Set<String> httpProxyExcludedAddresses)
-
getHttpProxyAuthUri
public String getHttpProxyAuthUri()
-
setHttpProxyAuthUri
public void setHttpProxyAuthUri(String httpProxyAuthUri)
-
getHttpProxyRealm
public String getHttpProxyRealm()
-
setHttpProxyRealm
public void setHttpProxyRealm(String httpProxyRealm)
-
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
public String getPackages()
-
setPackages
public void setPackages(String packages)
-
getPackagesAsArray
public String[] getPackagesAsArray()
-
getSession
public SalesforceSession getSession()
-
createRestClientFor
public RestClient createRestClientFor(SalesforceEndpoint endpoint) throws SalesforceException
- Throws:
SalesforceException
-
createRawClientFor
public RawClient createRawClientFor(SalesforceEndpoint endpoint) throws SalesforceException
- Throws:
SalesforceException
-
-