Package org.apache.catalina.manager
Class DummyProxySession
- java.lang.Object
- 
- org.apache.catalina.manager.DummyProxySession
 
- 
- 
Field Summary- 
Fields inherited from interface org.apache.catalina.SessionSESSION_ACTIVATED_EVENT, SESSION_CREATED_EVENT, SESSION_DESTROYED_EVENT, SESSION_PASSIVATED_EVENT
 
- 
 - 
Constructor SummaryConstructors Constructor Description DummyProxySession(java.lang.String sessionId)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccess()Update the accessed time information for this session.voidaddSessionListener(SessionListener listener)Add a session event listener to this component.voidendAccess()End access to the session.voidexpire()Perform the internal processing required to invalidate this session, without triggering an exception if the session has already expired.java.lang.StringgetAuthType()longgetCreationTime()longgetCreationTimeInternal()java.lang.StringgetId()java.lang.StringgetIdInternal()longgetIdleTime()longgetIdleTimeInternal()longgetLastAccessedTime()longgetLastAccessedTimeInternal()ManagergetManager()intgetMaxInactiveInterval()java.lang.ObjectgetNote(java.lang.String name)java.util.Iterator<java.lang.String>getNoteNames()java.security.PrincipalgetPrincipal()HttpSessiongetSession()longgetThisAccessedTime()longgetThisAccessedTimeInternal()booleanisAttributeDistributable(java.lang.String name, java.lang.Object value)Does the session implementation support the distributing of the given attribute?booleanisValid()voidrecycle()Release all object references, and initialize instance variables, in preparation for reuse of this object.voidremoveNote(java.lang.String name)Remove any object bound to the specified name in the internal notes for this session.voidremoveSessionListener(SessionListener listener)Remove a session event listener from this component.voidsetAuthType(java.lang.String authType)Set the authentication type used to authenticate our cached Principal, if any.voidsetCreationTime(long time)Set the creation time for this session.voidsetId(java.lang.String id)Set the session identifier for this session and notifies any associated listeners that a new session has been created.voidsetId(java.lang.String id, boolean notify)Set the session identifier for this session and optionally notifies any associated listeners that a new session has been created.voidsetManager(Manager manager)Set the Manager within which this Session is valid.voidsetMaxInactiveInterval(int interval)Set the maximum time interval, in seconds, between client requests before the servlet container will invalidate the session.voidsetNew(boolean isNew)Set theisNewflag for this session.voidsetNote(java.lang.String name, java.lang.Object value)Bind an object to a specified name in the internal notes associated with this session, replacing any existing binding for this name.voidsetPrincipal(java.security.Principal principal)Set the authenticated Principal that is associated with this Session.voidsetValid(boolean isValid)Set theisValidflag for this session.voidtellChangedSessionId(java.lang.String newId, java.lang.String oldId, boolean notifySessionListeners, boolean notifyContainerListeners)Inform the listeners about the change session ID.
 
- 
- 
- 
Method Detail- 
accesspublic void access() Description copied from interface:SessionUpdate the accessed time information for this session. This method should be called by the context when a request comes in for a particular session, even if the application does not reference it.
 - 
addSessionListenerpublic void addSessionListener(SessionListener listener) Description copied from interface:SessionAdd a session event listener to this component.- Specified by:
- addSessionListenerin interface- Session
- Parameters:
- listener- the SessionListener instance that should be notified for session events
 
 - 
endAccesspublic void endAccess() Description copied from interface:SessionEnd access to the session.
 - 
expirepublic void expire() Description copied from interface:SessionPerform the internal processing required to invalidate this session, without triggering an exception if the session has already expired.
 - 
getAuthTypepublic java.lang.String getAuthType() - Specified by:
- getAuthTypein interface- Session
- Returns:
- the authentication type used to authenticate our cached Principal, if any.
 
 - 
getCreationTimepublic long getCreationTime() - Specified by:
- getCreationTimein interface- Session
- Returns:
- the creation time for this session.
 
 - 
getCreationTimeInternalpublic long getCreationTimeInternal() - Specified by:
- getCreationTimeInternalin interface- Session
- Returns:
- the creation time for this session, bypassing the session validity checks.
 
 - 
getIdpublic java.lang.String getId() 
 - 
getIdInternalpublic java.lang.String getIdInternal() - Specified by:
- getIdInternalin interface- Session
- Returns:
- the session identifier for this session.
 
 - 
getLastAccessedTimepublic long getLastAccessedTime() - Specified by:
- getLastAccessedTimein interface- Session
- Returns:
- the last time the client sent a request associated with this session, as the number of milliseconds since midnight, January 1, 1970 GMT. Actions that your application takes, such as getting or setting a value associated with the session, do not affect the access time. This one gets updated whenever a request finishes.
 
 - 
getLastAccessedTimeInternalpublic long getLastAccessedTimeInternal() - Specified by:
- getLastAccessedTimeInternalin interface- Session
- Returns:
- the last client access time without invalidation check
- See Also:
- Session.getLastAccessedTime()
 
 - 
getIdleTimepublic long getIdleTime() - Specified by:
- getIdleTimein interface- Session
- Returns:
- the idle time (in milliseconds) from last client access time.
 
 - 
getIdleTimeInternalpublic long getIdleTimeInternal() - Specified by:
- getIdleTimeInternalin interface- Session
- Returns:
- the idle time from last client access time without invalidation check
- See Also:
- Session.getIdleTime()
 
 - 
getManagerpublic Manager getManager() - Specified by:
- getManagerin interface- Session
- Returns:
- the Manager within which this Session is valid.
 
 - 
getMaxInactiveIntervalpublic int getMaxInactiveInterval() - Specified by:
- getMaxInactiveIntervalin interface- Session
- Returns:
- the maximum time interval, in seconds, between client requests before the servlet container will invalidate the session. A negative time indicates that the session should never time out.
 
 - 
getNotepublic java.lang.Object getNote(java.lang.String name) 
 - 
getNoteNamespublic java.util.Iterator<java.lang.String> getNoteNames() - Specified by:
- getNoteNamesin interface- Session
- Returns:
- an Iterator containing the String names of all notes bindings that exist for this session.
 
 - 
getPrincipalpublic java.security.Principal getPrincipal() - Specified by:
- getPrincipalin interface- Session
- Returns:
- the authenticated Principal that is associated with this Session.
 This provides an Authenticatorwith a means to cache a previously authenticated Principal, and avoid potentially expensiveRealm.authenticate()calls on every request. If there is no current associated Principal, returnnull.
 
 - 
getSessionpublic HttpSession getSession() - Specified by:
- getSessionin interface- Session
- Returns:
- the HttpSessionfor which this object is the facade.
 
 - 
getThisAccessedTimepublic long getThisAccessedTime() - Specified by:
- getThisAccessedTimein interface- Session
- Returns:
- the last time the client sent a request associated with this session, as the number of milliseconds since midnight, January 1, 1970 GMT. Actions that your application takes, such as getting or setting a value associated with the session, do not affect the access time. This one gets updated whenever a request starts.
 
 - 
getThisAccessedTimeInternalpublic long getThisAccessedTimeInternal() - Specified by:
- getThisAccessedTimeInternalin interface- Session
- Returns:
- the last client access time without invalidation check
- See Also:
- Session.getThisAccessedTime()
 
 - 
isValidpublic boolean isValid() 
 - 
recyclepublic void recycle() Description copied from interface:SessionRelease all object references, and initialize instance variables, in preparation for reuse of this object.
 - 
removeNotepublic void removeNote(java.lang.String name) Description copied from interface:SessionRemove any object bound to the specified name in the internal notes for this session.- Specified by:
- removeNotein interface- Session
- Parameters:
- name- Name of the note to be removed
 
 - 
removeSessionListenerpublic void removeSessionListener(SessionListener listener) Description copied from interface:SessionRemove a session event listener from this component.- Specified by:
- removeSessionListenerin interface- Session
- Parameters:
- listener- remove the session listener, which will no longer be notified
 
 - 
setAuthTypepublic void setAuthType(java.lang.String authType) Description copied from interface:SessionSet the authentication type used to authenticate our cached Principal, if any.- Specified by:
- setAuthTypein interface- Session
- Parameters:
- authType- The new cached authentication type
 
 - 
setCreationTimepublic void setCreationTime(long time) Description copied from interface:SessionSet the creation time for this session. This method is called by the Manager when an existing Session instance is reused.- Specified by:
- setCreationTimein interface- Session
- Parameters:
- time- The new creation time
 
 - 
setIdpublic void setId(java.lang.String id) Description copied from interface:SessionSet the session identifier for this session and notifies any associated listeners that a new session has been created.
 - 
setIdpublic void setId(java.lang.String id, boolean notify)Description copied from interface:SessionSet the session identifier for this session and optionally notifies any associated listeners that a new session has been created.
 - 
setManagerpublic void setManager(Manager manager) Description copied from interface:SessionSet the Manager within which this Session is valid.- Specified by:
- setManagerin interface- Session
- Parameters:
- manager- The new Manager
 
 - 
setMaxInactiveIntervalpublic void setMaxInactiveInterval(int interval) Description copied from interface:SessionSet the maximum time interval, in seconds, between client requests before the servlet container will invalidate the session. A negative time indicates that the session should never time out.- Specified by:
- setMaxInactiveIntervalin interface- Session
- Parameters:
- interval- The new maximum interval
 
 - 
setNewpublic void setNew(boolean isNew) Description copied from interface:SessionSet theisNewflag for this session.
 - 
setNotepublic void setNote(java.lang.String name, java.lang.Object value)Description copied from interface:SessionBind an object to a specified name in the internal notes associated with this session, replacing any existing binding for this name.
 - 
setPrincipalpublic void setPrincipal(java.security.Principal principal) Description copied from interface:SessionSet the authenticated Principal that is associated with this Session. This provides anAuthenticatorwith a means to cache a previously authenticated Principal, and avoid potentially expensiveRealm.authenticate()calls on every request.- Specified by:
- setPrincipalin interface- Session
- Parameters:
- principal- The new Principal, or- nullif none
 
 - 
setValidpublic void setValid(boolean isValid) Description copied from interface:SessionSet theisValidflag for this session.
 - 
tellChangedSessionIdpublic void tellChangedSessionId(java.lang.String newId, java.lang.String oldId, boolean notifySessionListeners, boolean notifyContainerListeners)Description copied from interface:SessionInform the listeners about the change session ID.- Specified by:
- tellChangedSessionIdin interface- Session
- Parameters:
- newId- new session ID
- oldId- old session ID
- notifySessionListeners- Should any associated sessionListeners be notified that session ID has been changed?
- notifyContainerListeners- Should any associated ContainerListeners be notified that session ID has been changed?
 
 - 
isAttributeDistributablepublic boolean isAttributeDistributable(java.lang.String name, java.lang.Object value)Description copied from interface:SessionDoes the session implementation support the distributing of the given attribute? If the Manager is marked as distributable, then this method must be used to check attributes before adding them to a session and anIllegalArgumentExceptionthrown if the proposed attribute is not distributable.Note that the Managerimplementation may further restrict which attributes are distributed but aManagerlevel restriction should not trigger anIllegalArgumentExceptioninHttpSession.setAttribute(String, Object)- Specified by:
- isAttributeDistributablein interface- Session
- Parameters:
- name- The attribute name
- value- The attribute value
- Returns:
- trueif distribution is supported, otherwise- false
 
 
- 
 
-