|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WebSession
Primarily concerned with maintaining server-side state as attributes.
Method Summary | |
---|---|
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 |
setMaxInactiveInterval(int interval)
Specifies the time, in seconds, between client requests before the servlet container will invalidate this session. |
Methods inherited from interface org.apache.tapestry.web.AttributeHolder |
---|
getAttribute, getAttributeNames, setAttribute |
Methods inherited from interface org.apache.tapestry.describe.Describable |
---|
describeTo |
Method Detail |
---|
String getId()
.
boolean isNew()
void invalidate()
IllegalStateException
- if the session is already invalidated.long getCreationTime()
long getLastAccessedTime()
Actions that your application takes, such as getting or setting a value associated with the session, do not affect the access time.
int getMaxInactiveInterval()
void setMaxInactiveInterval(int interval)
interval
- - An integer specifying the number of seconds
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |