|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.web.ServletWebSession
public class ServletWebSession
Adapts HttpSession as
WebSession.
| Constructor Summary | |
|---|---|
ServletWebSession(HttpSession session)
|
|
| Method Summary | |
|---|---|
void |
describeTo(DescriptionReceiver receiver)
Invoked to have the receiver describe itself (largely in terms of properties and values). |
Object |
getAttribute(String name)
Returns the named object, or null if no attribute has been stored with the given name. |
List |
getAttributeNames()
Returns a list of all known attributes in ascending alphabetical order. |
long |
getCreationTime()
Returns the time when this session was created, measured in milliseconds since midnight January 1, 1970 GMT. |
String |
getId()
Returns a unique string identifier used to identify the session. |
long |
getLastAccessedTime()
Returns the last time the client sent a request associated with this session, as the number of milliseconds since midnight January 1, 1970 GMT, and marked by the time the container recieved the request. |
int |
getMaxInactiveInterval()
Returns the maximum time interval, in seconds, that the servlet container will keep this session open between client accesses. |
void |
invalidate()
Invalidates this session then unbinds any objects bound to it. |
boolean |
isNew()
Returns true if the client does not yet know about the session or if the client chooses not to join the session. |
void |
setAttribute(String name,
Object attribute)
Updates the attribute, replacing (or removing) its value. |
void |
setMaxInactiveInterval(int interval)
Specifies the time, in seconds, between client requests before the servlet container will invalidate this session. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServletWebSession(HttpSession session)
| Method Detail |
|---|
public void describeTo(DescriptionReceiver receiver)
DescribabletoString().
describeTo in interface Describablepublic List getAttributeNames()
AttributeHolder
getAttributeNames in interface AttributeHolderpublic Object getAttribute(String name)
AttributeHolder
getAttribute in interface AttributeHolder
public void setAttribute(String name,
Object attribute)
AttributeHolderWebSession
attribute in a clustered application).
setAttribute in interface AttributeHoldername - the name of the attribute to updateattribute - the new value for the attribute, or null to delete the attribute entirely.public String getId()
WebSession
getId in interface WebSession.public boolean isNew()
WebSession
isNew in interface WebSessionpublic void invalidate()
WebSession
invalidate in interface WebSessionpublic long getCreationTime()
getCreationTime in interface WebSessionpublic long getLastAccessedTime()
Actions that your application takes, such as getting or setting a value associated with the session, do not affect the access time.
getLastAccessedTime in interface WebSessionpublic int getMaxInactiveInterval()
getMaxInactiveInterval in interface WebSessionpublic void setMaxInactiveInterval(int interval)
setMaxInactiveInterval in interface WebSessioninterval - - An integer specifying the number of seconds
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||