|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.asdf.server.SessionManager
public class SessionManager
Stores session - client association.
Constructor Summary | |
---|---|
SessionManager()
Initializes empty lists |
Method Summary | |
---|---|
java.lang.Long[] |
getByClientConnection(ClientConnection client)
Get Session IDs by ClientConnection. |
ClientConnection |
getBySessionID(long sessionID)
Get ClientConnection by session ID. |
void |
put(long sessionID,
ClientConnection client)
Add new session ID for given ClientConnection |
void |
remove(ClientConnection client)
Remove ClientConnection and associated session IDs |
void |
remove(long sessionID)
Remove session ID |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionManager()
Method Detail |
---|
public ClientConnection getBySessionID(long sessionID)
sessionID
- ClientConnection having this session ID
public java.lang.Long[] getByClientConnection(ClientConnection client)
client
- ClientConnection used as search key
public void put(long sessionID, ClientConnection client)
sessionID
- client
- public void remove(long sessionID)
sessionID
- ID to removepublic void remove(ClientConnection client)
client
- ClientConnection to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |