|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webmethods.caf.wsclient.session.impl.WSClientSessionManager
public class WSClientSessionManager
Manage a set of sessions associated with a specific endpoint/credential pair The sessions are organized into session pools that reuse or dynamically create new sessions as they are needed
Constructor Summary | |
---|---|
WSClientSessionManager()
|
Method Summary | |
---|---|
void |
clearAllSessions()
Allows you to clear out all sessions |
void |
fireOnProxyContextCreated(ProxyContext context)
|
void |
fireOnSessionCreated(IWSClientSession session)
|
protected static AuthCredentials |
getAuthCredentials(IWSClientProxy clientProxy)
|
protected static String |
getBrowserSessionID()
|
IWSClientSession |
getSession(IWSClientProxy clientProxy)
Given the current proxy, get or create a new session. |
IWSClientSessionPool |
getSessionPool(IWSClientProxy clientProxy)
|
static String |
getSessionPoolID(IWSClientProxy clientProxy)
Create a sessionPoolID based upon the endpoint and the authcredentials |
protected static String |
getSessionPoolID(IWSClientProxy clientProxy,
AuthCredentials authCredentials)
|
void |
invalidateSessionsForHost(String hostURL)
Invalidate any sessions for a specific host URL. |
void |
registerListener(IWSSessionListener sessionListener)
Register a new IWSSessionListener |
void |
unregisterListener(IWSSessionListener sessionListener)
Unregister a IWSSessionListener |
void |
updateSessionPoolCredentials(IWSClientProxy clientProxy,
AuthCredentials oldAuthCred,
AuthCredentials newAuthCred)
Update a session pool in the Session Manager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WSClientSessionManager()
Method Detail |
---|
public IWSClientSessionPool getSessionPool(IWSClientProxy clientProxy)
getSessionPool
in interface IWSClientSessionManager
public IWSClientSession getSession(IWSClientProxy clientProxy)
IWSClientSessionManager
getSession
in interface IWSClientSessionManager
clientProxy
- the IWSClientProxy
proxy of the web service interface to invoke
IWSClientSession
object associated with this proxypublic void updateSessionPoolCredentials(IWSClientProxy clientProxy, AuthCredentials oldAuthCred, AuthCredentials newAuthCred)
IWSClientSessionManager
updateSessionPoolCredentials
in interface IWSClientSessionManager
clientProxy
- the IWSClientProxy
proxy of the web service interface to invokeoldAuthCred
- the original AuthCredentials
to updatenewAuthCred
- the new AuthCredentials
for use by the sessionpublic void registerListener(IWSSessionListener sessionListener)
IWSClientSessionManager
IWSSessionListener
registerListener
in interface IWSClientSessionManager
public void unregisterListener(IWSSessionListener sessionListener)
IWSClientSessionManager
IWSSessionListener
unregisterListener
in interface IWSClientSessionManager
public void invalidateSessionsForHost(String hostURL)
IWSClientSessionManager
invalidateSessionsForHost
in interface IWSClientSessionManager
public void clearAllSessions()
IWSClientSessionManager
clearAllSessions
in interface IWSClientSessionManager
public void fireOnProxyContextCreated(ProxyContext context)
fireOnProxyContextCreated
in interface IWSClientSessionManager
public void fireOnSessionCreated(IWSClientSession session)
fireOnSessionCreated
in interface IWSClientSessionManager
public static String getSessionPoolID(IWSClientProxy clientProxy)
clientProxy
- the IWSClientProxy
instance that will be invoked on this sessionprotected static String getSessionPoolID(IWSClientProxy clientProxy, AuthCredentials authCredentials)
protected static AuthCredentials getAuthCredentials(IWSClientProxy clientProxy)
protected static String getBrowserSessionID()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |