|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mega.gasp.platform.impl.SessionImpl
Session represent the connection of the user in the application. So it is instantiate immedialtly after the login of the user. The Session ID is used for identification of the user on a request.
Field Summary | |
private int |
actorID
|
private int |
actorSessionID
|
private java.lang.String |
pseudo
|
private int |
sessionID
|
private long |
timeout
|
Constructor Summary | |
SessionImpl(int aID,
long _timeout)
|
Method Summary | |
int |
getActorID()
Returns the Actor ID of the user. |
int |
getActorSessionID()
Returns the ActorSession ID if the user have already choiced a game session. |
java.lang.String |
getPseudoName()
Returns the current pseudo name of the user session. |
int |
getSessionID()
Returns the Session ID of the Session object. |
long |
getTimeout()
Returns last time infos received for the user associated with the actorSession. |
void |
refreshTimeout()
Save last time infos received for the user associated with the actorSession. |
void |
setActorSessionID(int aSID)
Sets the ActorSession ID after game session choose by the user. |
void |
setPseudoName(java.lang.String name)
Set the current pseudo name of the user session. |
void |
setTimeout(long _timeout)
Save last time infos received for the user associated with the actorSession. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int sessionID
private int actorID
private int actorSessionID
private java.lang.String pseudo
private long timeout
Constructor Detail |
public SessionImpl(int aID, long _timeout)
Method Detail |
public int getSessionID()
getSessionID
in interface Session
public int getActorID()
getActorID
in interface Session
public int getActorSessionID()
getActorSessionID
in interface Session
public java.lang.String getPseudoName()
public void setActorSessionID(int aSID)
setActorSessionID
in interface Session
aSID
- the ActorSession IDpublic void setPseudoName(java.lang.String name)
public long getTimeout()
getTimeout
in interface Session
public void setTimeout(long _timeout)
setTimeout
in interface Session
public void refreshTimeout()
refreshTimeout
in interface Session
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |