public class SalesforceSession
extends org.apache.camel.support.service.ServiceSupport
| Modifier and Type | Class and Description |
|---|---|
static interface |
SalesforceSession.SalesforceSessionListener |
| Constructor and Description |
|---|
SalesforceSession(org.apache.camel.CamelContext camelContext,
SalesforceHttpClient httpClient,
long timeout,
SalesforceLoginConfig config) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addListener(SalesforceSession.SalesforceSessionListener listener) |
void |
doStart() |
void |
doStop() |
String |
getAccessToken() |
String |
getInstanceUrl() |
org.eclipse.jetty.client.api.Request |
getLoginRequest(org.eclipse.jetty.client.HttpConversation conversation)
Creates login request, allows SalesforceSecurityHandler to create a login request for a failed authentication
conversation
|
long |
getTimeout() |
String |
login(String oldToken) |
void |
logout() |
void |
parseLoginResponse(org.eclipse.jetty.client.api.ContentResponse loginResponse,
String responseContent)
Parses login response, allows SalesforceSecurityHandler to parse a login request for a failed authentication
conversation.
|
boolean |
removeListener(SalesforceSession.SalesforceSessionListener listener) |
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, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic SalesforceSession(org.apache.camel.CamelContext camelContext,
SalesforceHttpClient httpClient,
long timeout,
SalesforceLoginConfig config)
public String login(String oldToken) throws SalesforceException
SalesforceExceptionpublic org.eclipse.jetty.client.api.Request getLoginRequest(org.eclipse.jetty.client.HttpConversation conversation)
public void parseLoginResponse(org.eclipse.jetty.client.api.ContentResponse loginResponse,
String responseContent)
throws SalesforceException
SalesforceExceptionpublic void logout()
throws SalesforceException
SalesforceExceptionpublic String getAccessToken()
public String getInstanceUrl()
public boolean addListener(SalesforceSession.SalesforceSessionListener listener)
public boolean removeListener(SalesforceSession.SalesforceSessionListener listener)
public void doStart()
throws Exception
doStart in class org.apache.camel.support.service.BaseServiceExceptionpublic void doStop()
throws Exception
doStop in class org.apache.camel.support.service.BaseServiceExceptionpublic long getTimeout()
Apache Camel