|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
jrun.servlet.session.JRunSession
| Constructor Summary | |
JRunSession(Session context,
java.lang.String id,
SessionHolder holder)
create a new session |
|
| Method Summary | |
void |
clearAttributeSet()
|
protected void |
fireAttributeAdded(jrun.servlet.session.HttpSessionBindingEvent event)
|
protected void |
fireAttributeRemoved(jrun.servlet.session.HttpSessionBindingEvent event)
|
protected void |
fireAttributeReplaced(jrun.servlet.session.HttpSessionBindingEvent event)
|
java.lang.Object |
getAttribute(java.lang.String name)
Returns the object bound to the given name in the session's application layer data. |
java.util.Enumeration |
getAttributeNames()
return enumeration of application data bound to this session. |
long |
getCreationTime()
Returns the time at which this Session representation was created, in milliseconds since the epoch. |
protected SessionHolder |
getHolder()
|
java.lang.String |
getId()
Returns the identifier assigned to this Session. |
long |
getLastAccessedTime()
Returns the last time this Session representation was accessed by the session level infrastructure, in milliseconds since the epoch. |
int |
getMaxInactiveInterval()
returns the max time interval (in seconds) this session can be active before it gets invalidated automatically. |
javax.servlet.ServletContext |
getServletContext()
|
jrun.servlet.session.HttpSessionContext |
getSessionContext()
Deprecated. |
java.lang.Object |
getValue(java.lang.String name)
Deprecated. |
java.lang.String[] |
getValueNames()
Deprecated. in favor of getAttributeNames() |
void |
invalidate()
Indicates that this member is leaving the session, causing this representation of the Session to be invalidated and removed from its context. |
boolean |
isAttributeSet()
|
boolean |
isNew()
|
boolean |
isSessionValid()
Returns true if this session is still valid (i.e. |
void |
putValue(java.lang.String name,
java.lang.Object value)
|
void |
removeAttribute(java.lang.String name)
Removes the object bound to the given name in the session's application layer data. |
void |
removeValue(java.lang.String name)
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Binds the specified object into the session's application layer data with the given name. |
protected void |
setContext(Session context)
set the session context handle that this session is associated with. |
protected void |
setHolder(SessionHolder holder)
|
void |
setMaxInactiveInterval(int interval)
set the max time interval this session can be active before it gets invalidated automatically. |
java.lang.String |
toString()
|
protected void |
unbindAll()
Unbind all objects. |
protected void |
updateLastAccessTime()
Updates the last access time for this session. |
| Constructor Detail |
public JRunSession(Session context,
java.lang.String id,
SessionHolder holder)
| Method Detail |
protected void setContext(Session context)
protected void setHolder(SessionHolder holder)
protected SessionHolder getHolder()
public long getCreationTime()
throws java.lang.IllegalStateException
public int getMaxInactiveInterval()
public void setMaxInactiveInterval(int interval)
interval - number of inactive seconds before invalidationpublic java.lang.String getId()
public long getLastAccessedTime()
throws java.lang.IllegalStateException
public jrun.servlet.session.HttpSessionContext getSessionContext()
public java.lang.Object getValue(java.lang.String name)
throws java.lang.IllegalStateException
public java.lang.Object getAttribute(java.lang.String name)
throws java.lang.IllegalStateException
name - the name of the binding to find.
public java.lang.String[] getValueNames()
throws java.lang.IllegalStateException
public java.util.Enumeration getAttributeNames()
throws java.lang.IllegalStateException
public void invalidate()
throws java.lang.IllegalStateException
public boolean isNew()
throws java.lang.IllegalStateException
public boolean isAttributeSet()
public void clearAttributeSet()
public void putValue(java.lang.String name,
java.lang.Object value)
throws java.lang.IllegalStateException
public void setAttribute(java.lang.String name,
java.lang.Object value)
throws java.lang.IllegalStateException
name - the name to which the data object will be bound. This may not be null.vlaue - the data object to be bound. This may not be null.
public void removeValue(java.lang.String name)
throws java.lang.IllegalStateException
public void removeAttribute(java.lang.String name)
throws java.lang.IllegalStateException
protected void unbindAll()
protected void updateLastAccessTime()
public boolean isSessionValid()
public javax.servlet.ServletContext getServletContext()
protected void fireAttributeAdded(jrun.servlet.session.HttpSessionBindingEvent event)
protected void fireAttributeRemoved(jrun.servlet.session.HttpSessionBindingEvent event)
protected void fireAttributeReplaced(jrun.servlet.session.HttpSessionBindingEvent event)
public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||