org.apache.camel.component.salesforce.internal
Class SalesforceSession

java.lang.Object
  extended by org.apache.camel.component.salesforce.internal.SalesforceSession
All Implemented Interfaces:
org.apache.camel.Service

public class SalesforceSession
extends Object
implements org.apache.camel.Service


Nested Class Summary
static interface SalesforceSession.SalesforceSessionListener
           
 
Constructor Summary
SalesforceSession(org.eclipse.jetty.client.HttpClient httpClient, SalesforceLoginConfig config)
           
 
Method Summary
 boolean addListener(SalesforceSession.SalesforceSessionListener listener)
           
 String getAccessToken()
           
 String getInstanceUrl()
           
 String login(String oldToken)
           
 void logout()
           
 boolean removeListener(SalesforceSession.SalesforceSessionListener listener)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SalesforceSession

public SalesforceSession(org.eclipse.jetty.client.HttpClient httpClient,
                         SalesforceLoginConfig config)
Method Detail

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