public interface IWSClientSessionManager
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) |
IWSClientSession |
getSession(IWSClientProxy clientProxy)
Given the current proxy, get or create a new session.
|
IWSClientSessionPool |
getSessionPool(IWSClientProxy clientProxy) |
IWSClientSessionPool |
getSessionPool(IWSClientProxy clientProxy,
String userAgent) |
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.
|
IWSClientSessionPool getSessionPool(IWSClientProxy clientProxy)
IWSClientSessionPool getSessionPool(IWSClientProxy clientProxy, String userAgent)
clientProxy
- the IWSClientProxy
proxy of the web service interface to invokeuserAgent
- Axis2 or GlueIWSClientSession getSession(IWSClientProxy clientProxy)
clientProxy
- the IWSClientProxy
proxy of the web service interface to invokeIWSClientSession
object associated with this proxyvoid updateSessionPoolCredentials(IWSClientProxy clientProxy, AuthCredentials oldAuthCred, AuthCredentials newAuthCred)
clientProxy
- the IWSClientProxy
proxy of the web service interface to invokeoldAuthCred
- the original AuthCredentials
to updatenewAuthCred
- the new AuthCredentials
for use by the sessionvoid registerListener(IWSSessionListener sessionListener)
IWSSessionListener
sessionListener
- void unregisterListener(IWSSessionListener sessionListener)
IWSSessionListener
sessionListener
- void invalidateSessionsForHost(String hostURL)
hostURL
- void clearAllSessions()
void fireOnProxyContextCreated(electric.glue.context.ProxyContext context)
void fireOnSessionCreated(IWSClientSession session)