|
Apache Tomcat 7.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.catalina.manager.DummyProxySession
public class DummyProxySession
| Field Summary |
|---|
| Fields inherited from interface org.apache.catalina.Session |
|---|
SESSION_ACTIVATED_EVENT, SESSION_CREATED_EVENT, SESSION_DESTROYED_EVENT, SESSION_PASSIVATED_EVENT |
| Constructor Summary | |
|---|---|
DummyProxySession(String sessionId)
|
|
| Method Summary | |
|---|---|
void |
access()
Update the accessed time information for this session. |
void |
addSessionListener(SessionListener listener)
Add a session event listener to this component. |
void |
endAccess()
End access to the session. |
void |
expire()
Perform the internal processing required to invalidate this session, without triggering an exception if the session has already expired. |
String |
getAuthType()
Return the authentication type used to authenticate our cached Principal, if any. |
long |
getCreationTime()
Return the creation time for this session. |
String |
getId()
Return the session identifier for this session. |
String |
getIdInternal()
Return the session identifier for this session. |
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. |
long |
getLastAccessedTimeInternal()
Return the last client access time without invalidation check |
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. |
Object |
getNote(String name)
Return the object bound with the specified name to the internal notes for this session, or null if no such binding exists. |
Iterator<String> |
getNoteNames()
Return an Iterator containing the String names of all notes bindings that exist for this session. |
Principal |
getPrincipal()
Return the authenticated Principal that is associated with this Session. |
HttpSession |
getSession()
Return the HttpSession for which this object
is the facade. |
long |
getThisAccessedTime()
Return the last time the client sent a request associated with this session, as the number of milliseconds since midnight, January 1, 1970 GMT. |
long |
getThisAccessedTimeInternal()
Return the last client access time without invalidation check |
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 |
removeNote(String name)
Remove any object bound to the specified name in the internal notes for this session. |
void |
removeSessionListener(SessionListener listener)
Remove a session event listener from this component. |
void |
setAuthType(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(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 |
setNote(String name,
Object value)
Bind an object to a specified name in the internal notes associated with this session, replacing any existing binding for this name. |
void |
setPrincipal(Principal principal)
Set the authenticated Principal that is associated with this Session. |
void |
setValid(boolean isValid)
Set the isValid flag for this session. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DummyProxySession(String sessionId)
| Method Detail |
|---|
public void access()
Session
access in interface Sessionpublic void addSessionListener(SessionListener listener)
Session
addSessionListener in interface Sessionpublic void endAccess()
Session
endAccess in interface Sessionpublic void expire()
Session
expire in interface Sessionpublic String getAuthType()
Session
getAuthType in interface Sessionpublic long getCreationTime()
Session
getCreationTime in interface Sessionpublic String getId()
Session
getId in interface Sessionpublic String getIdInternal()
Session
getIdInternal in interface Sessionpublic String getInfo()
Session<description>/<version>.
getInfo in interface Sessionpublic long getLastAccessedTime()
Session
getLastAccessedTime in interface Sessionpublic long getLastAccessedTimeInternal()
Session
getLastAccessedTimeInternal in interface SessionSession.getLastAccessedTime()public Manager getManager()
Session
getManager in interface Sessionpublic int getMaxInactiveInterval()
Session
getMaxInactiveInterval in interface Sessionpublic Object getNote(String name)
Sessionnull if no such binding exists.
getNote in interface Sessionname - Name of the note to be returnedpublic Iterator<String> getNoteNames()
Session
getNoteNames in interface Sessionpublic Principal getPrincipal()
SessionAuthenticator 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.
getPrincipal in interface Sessionpublic HttpSession getSession()
SessionHttpSession for which this object
is the facade.
getSession in interface Sessionpublic long getThisAccessedTime()
Session
getThisAccessedTime in interface Sessionpublic long getThisAccessedTimeInternal()
Session
getThisAccessedTimeInternal in interface SessionSession.getThisAccessedTime()public boolean isValid()
SessionisValid flag for this session.
isValid in interface Sessionpublic void recycle()
Session
recycle in interface Sessionpublic void removeNote(String name)
Session
removeNote in interface Sessionname - Name of the note to be removedpublic void removeSessionListener(SessionListener listener)
Session
removeSessionListener in interface Sessionpublic void setAuthType(String authType)
Session
setAuthType in interface SessionauthType - The new cached authentication typepublic void setCreationTime(long time)
Session
setCreationTime in interface Sessiontime - The new creation timepublic void setId(String id)
Session
setId in interface Sessionid - The new session identifierpublic void setManager(Manager manager)
Session
setManager in interface Sessionmanager - The new Managerpublic void setMaxInactiveInterval(int interval)
Session
setMaxInactiveInterval in interface Sessioninterval - The new maximum intervalpublic void setNew(boolean isNew)
SessionisNew flag for this session.
setNew in interface SessionisNew - The new value for the isNew flag
public void setNote(String name,
Object value)
Session
setNote in interface Sessionname - Name to which the object should be boundvalue - Object to be bound to the specified namepublic void setPrincipal(Principal principal)
SessionAuthenticator with a means to cache a
previously authenticated Principal, and avoid potentially expensive
Realm.authenticate() calls on every request.
setPrincipal in interface Sessionprincipal - The new Principal, or null if nonepublic void setValid(boolean isValid)
SessionisValid flag for this session.
setValid in interface SessionisValid - The new value for the isValid flag
|
Apache Tomcat 7.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||