SESSION_ACTIVATED_EVENT, SESSION_CREATED_EVENT, SESSION_DESTROYED_EVENT, SESSION_PASSIVATED_EVENT
Constructor and Description |
---|
DummyProxySession(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.
|
String |
getAuthType() |
long |
getCreationTime() |
long |
getCreationTimeInternal() |
String |
getId() |
String |
getIdInternal() |
String |
getInfo() |
long |
getLastAccessedTime() |
long |
getLastAccessedTimeInternal() |
Manager |
getManager() |
int |
getMaxInactiveInterval() |
Object |
getNote(String name) |
Iterator<String> |
getNoteNames() |
Principal |
getPrincipal() |
HttpSession |
getSession() |
long |
getThisAccessedTime() |
long |
getThisAccessedTimeInternal() |
boolean |
isAttributeDistributable(String name,
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(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 and notifies any associated
listeners that a new session has been created.
|
void |
setId(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(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. |
public DummyProxySession(String sessionId)
public void access()
Session
public void addSessionListener(SessionListener listener)
Session
addSessionListener
in interface Session
listener
- the SessionListener instance that should be notified
for session eventspublic void endAccess()
Session
public void expire()
Session
public String getAuthType()
getAuthType
in interface Session
public long getCreationTime()
getCreationTime
in interface Session
public long getCreationTimeInternal()
getCreationTimeInternal
in interface Session
public String getId()
public String getIdInternal()
getIdInternal
in interface Session
public String getInfo()
public long getLastAccessedTime()
getLastAccessedTime
in interface Session
public long getLastAccessedTimeInternal()
getLastAccessedTimeInternal
in interface Session
Session.getLastAccessedTime()
public Manager getManager()
getManager
in interface Session
public int getMaxInactiveInterval()
getMaxInactiveInterval
in interface Session
public Iterator<String> getNoteNames()
getNoteNames
in interface Session
public Principal getPrincipal()
getPrincipal
in interface Session
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 HttpSession getSession()
getSession
in interface Session
HttpSession
for which this object
is the facade.public long getThisAccessedTime()
getThisAccessedTime
in interface Session
public long getThisAccessedTimeInternal()
getThisAccessedTimeInternal
in interface Session
Session.getThisAccessedTime()
public boolean isValid()
public void recycle()
Session
public void removeNote(String name)
Session
removeNote
in interface Session
name
- Name of the note to be removedpublic void removeSessionListener(SessionListener listener)
Session
removeSessionListener
in interface Session
listener
- remove the session listener, which will no longer be
notifiedpublic void setAuthType(String authType)
Session
setAuthType
in interface Session
authType
- The new cached authentication typepublic void setCreationTime(long time)
Session
setCreationTime
in interface Session
time
- The new creation timepublic void setId(String id)
Session
public void setId(String id, boolean notify)
Session
public void setManager(Manager manager)
Session
setManager
in interface Session
manager
- The new Managerpublic void setMaxInactiveInterval(int interval)
Session
setMaxInactiveInterval
in interface Session
interval
- The new maximum intervalpublic void setNew(boolean isNew)
Session
isNew
flag for this session.public void setNote(String name, Object value)
Session
public void setPrincipal(Principal principal)
Session
Authenticator
with a means to cache a
previously authenticated Principal, and avoid potentially expensive
Realm.authenticate()
calls on every request.setPrincipal
in interface Session
principal
- The new Principal, or null
if nonepublic void setValid(boolean isValid)
Session
isValid
flag for this session.public boolean isAttributeDistributable(String name, Object value)
Session
IllegalArgumentException
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 Session
name
- The attribute namevalue
- The attribute valuetrue
if distribution is supported, otherwise false
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.