|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.handle.hdllib.ClientSessionTracker
public class ClientSessionTracker
Instances of ClientSessionTracker are meant to maintain a set of ClientSideSessionInfo objects for different servers. When one of the servers in the list are contacted, the existing session information associated with that server is used to authenticate. This object also keeps track of the SessionSetupInfo in case the resolver needs to create a new session.
Constructor Summary | |
---|---|
ClientSessionTracker()
Creates a new ClientSessionTracker object that has no sessionSetupInfo. |
|
ClientSessionTracker(SessionSetupInfo setupInfo)
|
Method Summary | |
---|---|
ClientSideSessionInfo[] |
getAllSessions()
Returns a list of sessions. |
ClientSideSessionInfo |
getAndRemoveSession(ServerInfo server,
AuthenticationInfo authInfo)
Gets the session that is associated with the given server and authentication information, and removes it so that no other thread can use it. |
ClientSideSessionInfo |
getSession(ServerInfo server,
AuthenticationInfo authInfo)
Gets the session that is associated with the given server and authentication information. |
SessionSetupInfo |
getSessionSetupInfo()
Gets the session setup information for this session tracker. |
void |
putSession(ClientSideSessionInfo session,
ServerInfo server,
AuthenticationInfo authInfo)
Stores the given session object and associates it with the given server and authInfo objects. |
void |
removeSession(ClientSideSessionInfo session)
Remove all references to the given session from this session tracker. |
static boolean |
sessionOptionChanged(ClientSideSessionInfo csinfo,
SessionSetupInfo option)
|
void |
setSessionSetupInfo(SessionSetupInfo setupInfo)
Sets the session setup information for this session tracker. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientSessionTracker()
public ClientSessionTracker(SessionSetupInfo setupInfo)
Method Detail |
---|
public void setSessionSetupInfo(SessionSetupInfo setupInfo)
public SessionSetupInfo getSessionSetupInfo()
public ClientSideSessionInfo getSession(ServerInfo server, AuthenticationInfo authInfo)
public ClientSideSessionInfo getAndRemoveSession(ServerInfo server, AuthenticationInfo authInfo)
public ClientSideSessionInfo[] getAllSessions()
public void putSession(ClientSideSessionInfo session, ServerInfo server, AuthenticationInfo authInfo)
public void removeSession(ClientSideSessionInfo session)
public static boolean sessionOptionChanged(ClientSideSessionInfo csinfo, SessionSetupInfo option)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |