org.apache.camel.component.salesforce.internal
Class SalesforceSession
java.lang.Object
org.apache.camel.component.salesforce.internal.SalesforceSession
- All Implemented Interfaces:
- org.apache.camel.Service
public class SalesforceSession
- extends Object
- implements org.apache.camel.Service
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SalesforceSession
public SalesforceSession(org.eclipse.jetty.client.HttpClient httpClient,
SalesforceLoginConfig config)
login
public String login(String oldToken)
throws SalesforceException
- Throws:
SalesforceException
logout
public void logout()
throws SalesforceException
- Throws:
SalesforceException
getAccessToken
public String getAccessToken()
getInstanceUrl
public String getInstanceUrl()
addListener
public boolean addListener(SalesforceSession.SalesforceSessionListener listener)
removeListener
public boolean removeListener(SalesforceSession.SalesforceSessionListener listener)
start
public void start()
throws Exception
- Specified by:
start
in interface org.apache.camel.Service
- Throws:
Exception
stop
public void stop()
throws Exception
- Specified by:
stop
in interface org.apache.camel.Service
- Throws:
Exception
Apache Camel