public class ClientSessionTracker
extends java.lang.Object
Constructor and Description |
---|
ClientSessionTracker()
Creates a new ClientSessionTracker object that has no sessionSetupInfo.
|
ClientSessionTracker(SessionSetupInfo setupInfo) |
Modifier and Type | Method and Description |
---|---|
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.
|
public ClientSessionTracker()
public ClientSessionTracker(SessionSetupInfo setupInfo)
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)