public class WSClientSessionManager extends Object implements IWSClientSessionManager
Constructor and Description |
---|
WSClientSessionManager() |
Modifier and Type | Method and Description |
---|---|
void |
clearAllSessions()
Allows you to clear out all sessions
|
void |
fireOnProxyContextCreated(electric.glue.context.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) |
IWSClientSessionPool |
getSessionPool(IWSClientProxy clientProxy,
String userAgent) |
static String |
getSessionPoolID(IWSClientProxy clientProxy) |
protected static String |
getSessionPoolID(IWSClientProxy clientProxy,
AuthCredentials authCredentials,
String userAgent) |
static String |
getSessionPoolID(IWSClientProxy clientProxy,
String userAgent)
Create a sessionPoolID based upon the endpoint and the 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.
|
public IWSClientSessionPool getSessionPool(IWSClientProxy clientProxy)
getSessionPool
in interface IWSClientSessionManager
public IWSClientSessionPool getSessionPool(IWSClientProxy clientProxy, String userAgent)
getSessionPool
in interface IWSClientSessionManager
clientProxy
- the IWSClientProxy
proxy of the web service interface to invokeuserAgent
- Axis2 or Gluepublic IWSClientSession getSession(IWSClientProxy clientProxy)
IWSClientSessionManager
getSession
in interface IWSClientSessionManager
clientProxy
- the IWSClientProxy
proxy of the web service interface to invokeIWSClientSession
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(electric.glue.context.ProxyContext context)
fireOnProxyContextCreated
in interface IWSClientSessionManager
public void fireOnSessionCreated(IWSClientSession session)
fireOnSessionCreated
in interface IWSClientSessionManager
public static String getSessionPoolID(IWSClientProxy clientProxy)
public static String getSessionPoolID(IWSClientProxy clientProxy, String userAgent)
clientProxy
- the IWSClientProxy
instance that will be invoked on this sessionprotected static String getSessionPoolID(IWSClientProxy clientProxy, AuthCredentials authCredentials, String userAgent)
protected static AuthCredentials getAuthCredentials(IWSClientProxy clientProxy)
protected static String getBrowserSessionID()