public abstract class AbstractCachedOAuthTokenBearerConfig extends AbstractOAuthTokenBearerConfig
Modifier and Type | Field and Description |
---|---|
protected long |
initialDelay
Specify the time in seconds the connector will wait before executing the first keep-alive request
|
protected long |
keepAliveRequestFrequency
Specifies the time in seconds the connector will wait between two successive requests
|
protected boolean |
useKeepAlive
If set to true then the session will not expire and the connector will execute a simple request to mantain the session.
|
consumerKey, disableSessionInvalidation, httpclient, keyStore, principal, storePassword, tokenEndpoint
COULD_NOT_EXTRACT_FIELD
RECOMMENDED_API_VERSION
Constructor and Description |
---|
AbstractCachedOAuthTokenBearerConfig() |
Modifier and Type | Method and Description |
---|---|
protected void |
connect(String consumerKey,
String keyStore,
String storePassword,
String principal,
String tokenEndpoint,
boolean disableSessionInvalidation) |
long |
getInitialDelay() |
long |
getKeepAliveRequestFrequency() |
boolean |
isConnected()
Check if connection is already established.
|
boolean |
isUseKeepAlive() |
void |
setInitialDelay(long initialDelay) |
void |
setKeepAliveRequestFrequency(long keepAliveRequestFrequency) |
void |
setUseKeepAlive(boolean useKeepAlive) |
protected void |
startKeepAliveFeature(com.sforce.soap.partner.PartnerConnection partnerConnection) |
destroySession, establishConnection, getGrantType, getKeyStoreResourceStream, getPrincipal, getSessionId, getTokenEndpoint, isDisableSessionInvalidationActive, sendAuthorizationRequestAndParseResponse, validateConfiguration
getApiVersion, getOAuth2AccessToken, getOAuth2instanceId, partnerConnection, postAuthorization, setApiVersion, setOAuth2AccessToken, setOAuth2instanceId
computeBaseUrl, getAllowFieldTruncationSupport, getApexClassNames, getApexClient, getAssignmentRuleId, getBatchSobjectMaxDepth, getBulkConnection, getClearNullFields, getClientId, getConnectionTimeout, getFetchAllApexRestMetadata, getFetchAllApexSoapMetadata, getMetadataConnection, getMuleContext, getPartnerConnection, getProxyHost, getProxyPassword, getProxyPort, getProxyPortAsInteger, getProxyUsername, getPushEventRestClient, getReadTimeout, getTimeObjectStore, getUrls, getUseDefaultRule, getUsername, initConnectionConfig, logoutPartnerConnection, setAllowFieldTruncationSupport, setApexClassNames, setAssignmentRuleId, setBatchSobjectMaxDepth, setClearNullFields, setClientId, setConnectionOptions, setConnectionTimeout, setFetchAllApexRestMetadata, setFetchAllApexSoapMetadata, setMuleContext, setPartnerConnection, setProxyHost, setProxyPassword, setProxyPort, setProxyUsername, setReadTimeout, setTimeObjectStore, setUseDefaultRule, setUsername, subscribe, validateApexClassesConfiguration, validateCurrentSession, validatePartnerConnection, validateProxyConfiguration, verifyApiVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
recreateSession
@Configurable @Placement(group="Keep-Alive") @Default(value="false") @FriendlyName(value="Use keep alive") protected boolean useKeepAlive
@Configurable @Placement(group="Keep-Alive") @Default(value="0") @FriendlyName(value="Initial delay") protected long initialDelay
@Configurable @Placement(group="Keep-Alive") @Default(value="320") @FriendlyName(value="Keep-Alive request frequency") protected long keepAliveRequestFrequency
public AbstractCachedOAuthTokenBearerConfig()
protected void connect(String consumerKey, String keyStore, String storePassword, String principal, String tokenEndpoint, boolean disableSessionInvalidation) throws org.mule.api.ConnectionException
connect
in class AbstractOAuthTokenBearerConfig
org.mule.api.ConnectionException
protected void startKeepAliveFeature(com.sforce.soap.partner.PartnerConnection partnerConnection)
public boolean isUseKeepAlive()
public void setUseKeepAlive(boolean useKeepAlive)
public long getInitialDelay()
public void setInitialDelay(long initialDelay)
public long getKeepAliveRequestFrequency()
public void setKeepAliveRequestFrequency(long keepAliveRequestFrequency)
@ValidateConnection public boolean isConnected()
isConnected
in class AbstractConfig
Copyright © 2010–2020. All rights reserved.