SESSION_ACTIVATED_EVENT, SESSION_CREATED_EVENT, SESSION_DESTROYED_EVENT, SESSION_PASSIVATED_EVENT| Constructor and Description |
|---|
DummyProxySession(java.lang.String sessionId) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.lang.String |
getAuthType() |
long |
getCreationTime() |
long |
getCreationTimeInternal() |
java.lang.String |
getId() |
java.lang.String |
getIdInternal() |
long |
getIdleTime() |
long |
getIdleTimeInternal() |
long |
getLastAccessedTime() |
long |
getLastAccessedTimeInternal() |
Manager |
getManager() |
int |
getMaxInactiveInterval() |
java.lang.Object |
getNote(java.lang.String name) |
java.util.Iterator<java.lang.String> |
getNoteNames() |
java.security.Principal |
getPrincipal() |
HttpSession |
getSession() |
long |
getThisAccessedTime() |
long |
getThisAccessedTimeInternal() |
boolean |
isAttributeDistributable(java.lang.String name,
java.lang.Object value)
Does the session implementation support the distributing of the given
attribute?
|
boolean |
isValid() |
void |
recycle()
Release all object references, and initialize instance variables, in
preparation for reuse of this object.
|
void |
removeNote(java.lang.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(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 and notifies any associated
listeners that a new session has been created.
|
void |
setId(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.
|
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(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.
|
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. |
void |
tellChangedSessionId(java.lang.String newId,
java.lang.String oldId,
boolean notifySessionListeners,
boolean notifyContainerListeners)
Inform the listeners about the change session ID.
|
public void access()
Sessionpublic void addSessionListener(SessionListener listener)
SessionaddSessionListener in interface Sessionlistener - the SessionListener instance that should be notified
for session eventspublic void endAccess()
Sessionpublic void expire()
Sessionpublic java.lang.String getAuthType()
getAuthType in interface Sessionpublic long getCreationTime()
getCreationTime in interface Sessionpublic long getCreationTimeInternal()
getCreationTimeInternal in interface Sessionpublic java.lang.String getId()
public java.lang.String getIdInternal()
getIdInternal in interface Sessionpublic long getLastAccessedTime()
getLastAccessedTime in interface Sessionpublic long getLastAccessedTimeInternal()
getLastAccessedTimeInternal in interface SessionSession.getLastAccessedTime()public long getIdleTime()
getIdleTime in interface Sessionpublic long getIdleTimeInternal()
getIdleTimeInternal in interface SessionSession.getIdleTime()public Manager getManager()
getManager in interface Sessionpublic int getMaxInactiveInterval()
getMaxInactiveInterval in interface Sessionpublic java.lang.Object getNote(java.lang.String name)
public java.util.Iterator<java.lang.String> getNoteNames()
getNoteNames in interface Sessionpublic java.security.Principal getPrincipal()
getPrincipal in interface 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.public HttpSession getSession()
getSession in interface SessionHttpSession for which this object
is the facade.public long getThisAccessedTime()
getThisAccessedTime in interface Sessionpublic long getThisAccessedTimeInternal()
getThisAccessedTimeInternal in interface SessionSession.getThisAccessedTime()public boolean isValid()
public void recycle()
Sessionpublic void removeNote(java.lang.String name)
SessionremoveNote in interface Sessionname - Name of the note to be removedpublic void removeSessionListener(SessionListener listener)
SessionremoveSessionListener in interface Sessionlistener - remove the session listener, which will no longer be
notifiedpublic void setAuthType(java.lang.String authType)
SessionsetAuthType in interface SessionauthType - The new cached authentication typepublic void setCreationTime(long time)
SessionsetCreationTime in interface Sessiontime - The new creation timepublic void setId(java.lang.String id)
Sessionpublic void setId(java.lang.String id,
boolean notify)
Sessionpublic void setManager(Manager manager)
SessionsetManager in interface Sessionmanager - The new Managerpublic void setMaxInactiveInterval(int interval)
SessionsetMaxInactiveInterval in interface Sessioninterval - The new maximum intervalpublic void setNew(boolean isNew)
SessionisNew flag for this session.public void setNote(java.lang.String name,
java.lang.Object value)
Sessionpublic void setPrincipal(java.security.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.public void tellChangedSessionId(java.lang.String newId,
java.lang.String oldId,
boolean notifySessionListeners,
boolean notifyContainerListeners)
SessiontellChangedSessionId in interface SessionnewId - new session IDoldId - old session IDnotifySessionListeners - 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?public boolean isAttributeDistributable(java.lang.String name,
java.lang.Object value)
SessionIllegalArgumentException thrown if the proposed attribute is
not distributable.
Note that the Manager implementation may further restrict which
attributes are distributed but a Manager level restriction should
not trigger an IllegalArgumentException in
HttpSession.setAttribute(String, Object)
isAttributeDistributable in interface Sessionname - The attribute namevalue - The attribute valuetrue if distribution is supported, otherwise falseCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.