|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Session is the Catalina-internal facade for an
HttpSession
that is used to maintain state information
between requests for a particular user of a web application.
Method Summary | |
void |
access()
Update the accessed time information for this session. |
void |
expire()
Perform the internal processing required to invalidate this session, without triggering an exception if the session has already expired. |
java.lang.String |
getAuthType()
Return the authentication type used to authenticate our cached Principal, if any. |
long |
getCreationTime()
Return the creation time for this session. |
java.lang.String |
getId()
Return the session identifier for this session. |
java.lang.String |
getInfo()
Return descriptive information about this Session implementation and the corresponding version number, in the format <description>/<version> . |
long |
getLastAccessedTime()
Return the last time the client sent a request associated with this session, as the number of milliseconds since midnight, January 1, 1970 GMT. |
Manager |
getManager()
Return the Manager within which this Session is valid. |
int |
getMaxInactiveInterval()
Return the maximum time interval, in seconds, between client requests before the servlet container will invalidate the session. |
java.security.Principal |
getPrincipal()
Return the authenticated Principal that is associated with this Session. |
javax.servlet.http.HttpSession |
getSession()
Return the HttpSession for which this object
is the facade. |
boolean |
isValid()
Return the isValid flag for this session. |
void |
recycle()
Release all object references, and initialize instance variables, in preparation for reuse of this object. |
void |
setAuthType(java.lang.String authType)
Set the authentication type used to authenticate our cached Principal, if any. |
void |
setCreationTime(long time)
Set the creation time for this session. |
void |
setId(java.lang.String id)
Set the session identifier for this session. |
void |
setManager(Manager manager)
Set the Manager within which this Session is valid. |
void |
setMaxInactiveInterval(int interval)
Set the maximum time interval, in seconds, between client requests before the servlet container will invalidate the session. |
void |
setNew(boolean isNew)
Set the isNew flag for this session. |
void |
setPrincipal(java.security.Principal principal)
Set the authenticated Principal that is associated with this Session. |
void |
setValid(boolean isValid)
Set the isValid flag for this session. |
Method Detail |
public java.lang.String getAuthType()
public void setAuthType(java.lang.String authType)
authType
- The new cached authentication typepublic long getCreationTime()
public void setCreationTime(long time)
time
- The new creation timepublic java.lang.String getId()
public void setId(java.lang.String id)
id
- The new session identifierpublic java.lang.String getInfo()
<description>/<version>
.public long getLastAccessedTime()
public Manager getManager()
public void setManager(Manager manager)
manager
- The new Managerpublic int getMaxInactiveInterval()
public void setMaxInactiveInterval(int interval)
interval
- The new maximum intervalpublic void setNew(boolean isNew)
isNew
flag for this session.isNew
- The new value for the isNew
flagpublic java.security.Principal getPrincipal()
Authenticator
with a means to cache a
previously authenticated Principal, and avoid potentially expensive
Realm.authenticate()
calls on every request. If there
is no current associated Principal, return null
.public void setPrincipal(java.security.Principal principal)
Authenticator
with a means to cache a
previously authenticated Principal, and avoid potentially expensive
Realm.authenticate()
calls on every request.principal
- The new Principal, or null
if nonepublic javax.servlet.http.HttpSession getSession()
HttpSession
for which this object
is the facade.public void setValid(boolean isValid)
isValid
flag for this session.isValid
- The new value for the isValid
flagpublic boolean isValid()
isValid
flag for this session.public void access()
public void expire()
public void recycle()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |