|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IWSClientSessionManager
Interface defining the session management for the WsClient Library This allows you to reuse previously (authenticated) http sessions from prior web service invocations
Method Summary | |
---|---|
void |
clearAllSessions()
Allows you to clear out all sessions |
void |
fireOnProxyContextCreated(ProxyContext context)
|
void |
fireOnSessionCreated(IWSClientSession session)
|
IWSClientSession |
getSession(IWSClientProxy clientProxy)
Given the current proxy, get or create a new session. |
IWSClientSessionPool |
getSessionPool(IWSClientProxy clientProxy)
|
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. |
Method Detail |
---|
IWSClientSessionPool getSessionPool(IWSClientProxy clientProxy)
IWSClientSession getSession(IWSClientProxy clientProxy)
clientProxy
- the IWSClientProxy
proxy of the web service interface to invoke
IWSClientSession
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(ProxyContext context)
void fireOnSessionCreated(IWSClientSession session)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |