|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.grizzly.tcp.http11.GrizzlySession
public class GrizzlySession
Simple session object used.
Constructor Summary | |
---|---|
GrizzlySession()
|
|
GrizzlySession(String requestedSessionId)
Create a new session using a session identifier |
Method Summary | |
---|---|
ConcurrentHashMap<String,Object> |
attributes()
Return a ConcurrentHashMap of attibutes. |
Object |
getAttribute(String key)
Return an attribute. |
String |
getIdInternal()
Return the session identifier for this session. |
long |
getSessionTimeout()
Return a long representing the maximum idle time a session can be. |
long |
getTimestamp()
Return the timespam when this session has been created. |
boolean |
isValid()
Is the current Session valid? |
Object |
removeAttribute(String key)
Remove an attribute. |
void |
setAttribute(String key,
Object value)
Add an attribute to this session. |
void |
setIdInternal(String requestedSessionId)
Return the session identifier for this session. |
void |
setIsValid(boolean isValid)
Set this object valifity. |
void |
setSessionTimeout(long sessionTimeout)
Set a long representing the maximum idle time a session can be. |
void |
setTimestamp(long timestamp)
Set the timespam when this session has been created. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GrizzlySession()
public GrizzlySession(String requestedSessionId)
requestedSessionId
- session identifierMethod Detail |
---|
public boolean isValid()
public void setIsValid(boolean isValid)
isValid
- public String getIdInternal()
public void setIdInternal(String requestedSessionId)
public void setAttribute(String key, Object value)
key
- value
- public Object getAttribute(String key)
key
-
public Object removeAttribute(String key)
key
-
public ConcurrentHashMap<String,Object> attributes()
ConcurrentHashMap
of attibutes.
public long getSessionTimeout()
public void setSessionTimeout(long sessionTimeout)
sessionTimeout
- a long representing the maximum idle time a session can be.public long getTimestamp()
public void setTimestamp(long timestamp)
timestamp
- a long representin when the session has been created.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |