| Package | Description |
|---|---|
| com.sun.enterprise.security.web | |
| org.apache.catalina | |
| org.apache.catalina.authenticator |
This package contains
Authenticator implementations for the
various supported authentication methods (BASIC, DIGEST, and FORM). |
| org.apache.catalina.connector | |
| org.apache.catalina.core | |
| org.apache.catalina.session |
This package contains the standard
Manager and
Session implementations that represent the collection of
active sessions and the individual sessions themselves, respectively,
that are associated with a Context. |
| org.apache.catalina.valves |
This package contains a variety of small Valve implementations that do
not warrant being packaged separately.
|
| org.glassfish.web.ha.authenticator | |
| org.glassfish.web.ha.session.management |
| Modifier and Type | Method and Description |
|---|---|
protected void |
GlassFishSingleSignOn.removeSession(String ssoId,
Session session)
Remove a single Session from a SingleSignOn.
|
| Modifier and Type | Method and Description |
|---|---|
Session |
Manager.createEmptySession()
Get a session from the recycled ones or create a new empty one.
|
Session |
Manager.createSession()
Construct and return a new session object, based on the default
settings specified by this Manager's properties.
|
Session |
Manager.createSession(String sessionId)
Construct and return a new session object, based on the default
settings specified by this Manager's properties, using the specified
session id.
|
Session |
Manager.findSession(String id)
Return the active Session, associated with this Manager, with the
specified session id (if any); otherwise return
null. |
Session |
Manager.findSession(String id,
javax.servlet.http.HttpServletRequest request)
Gets the session with the given id from the given request.
|
Session |
Manager.findSession(String id,
String version)
Finds and returns the session with the given id that also satisfies
the given version requirement.
|
Session[] |
Manager.findSessions()
Return the set of active Sessions associated with this Manager.
|
Session |
SessionEvent.getSession()
Return the Session on which this event occurred.
|
Session |
Request.getSessionInternal(boolean create)
Gets the session associated with this Request, creating one
if necessary and requested.
|
Session |
Store.load(String id)
Load and return the Session associated with the specified session
identifier from this Store, without removing it.
|
Session |
Request.lockSession() |
| Modifier and Type | Method and Description |
|---|---|
void |
Manager.add(Session session)
Add this Session to the set of active Sessions for this Manager.
|
void |
Manager.changeSessionId(Session session)
Change the session ID of the current session to a new randomly generated
session ID.
|
void |
Manager.remove(Session session)
Remove this Session from the active Sessions for this Manager.
|
void |
Store.save(Session session)
Save the specified Session into this Store.
|
javax.servlet.http.Cookie |
Manager.toCookie(Session session)
Converts the given session into a cookie as a way of persisting it.
|
| Constructor and Description |
|---|
SessionEvent(Session session,
String type,
Object data)
Construct a new SessionEvent with the specified parameters.
|
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Session> |
SingleSignOnEntry.sessions |
| Modifier and Type | Method and Description |
|---|---|
protected Session |
AuthenticatorBase.getSession(HttpRequest request)
Return the internal Session that is associated with this HttpRequest,
or
null if there is no such Session. |
protected Session |
AuthenticatorBase.getSession(HttpRequest request,
boolean create)
Return the internal Session that is associated with this HttpRequest,
possibly creating a new one if necessary, or
null if
there is no such session and we did not create one. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SingleSignOnEntry.addSession(SingleSignOn sso,
Session session)
Adds the given session to this SingleSignOnEntry if it does not
already exist.
|
protected void |
AuthenticatorBase.associate(String ssoId,
long ssoVersion,
Session session)
Associate the specified single sign on identifier with the
specified Session.
|
void |
SingleSignOn.associate(String ssoId,
long ssoVersion,
Session session)
Associate the specified single sign on identifier with the
specified Session.
|
protected void |
SingleSignOn.deregister(String ssoId,
Session session)
Deregister the specified session.
|
void |
SingleSignOnEntry.removeSession(Session session) |
protected boolean |
FormAuthenticator.restoreRequest(HttpRequest request,
Session session)
Restore the original request from information stored in our session.
|
protected String |
FormAuthenticator.savedRequestURL(Session session)
Return the request URI (with the corresponding query string, if any)
from the saved request so that we can redirect to it.
|
protected void |
FormAuthenticator.saveRequest(HttpRequest request,
Session session)
Save the original request information into our session.
|
| Modifier and Type | Field and Description |
|---|---|
protected Session |
Request.session
The currently active session for this request.
|
| Modifier and Type | Method and Description |
|---|---|
protected Session |
Request.doGetSession(boolean create) |
Session |
Request.getSessionInternal()
Return the session associated with this Request, creating one
if necessary.
|
Session |
Request.getSessionInternal(boolean create)
Gets the session associated with this Request, creating one
if necessary and requested.
|
Session |
Request.lockSession()
lock the session associated with this request
this will be a foreground lock
checks for background lock to clear
and does a decay poll loop to wait until
it is clear; after 5 times it takes control for
the foreground
|
| Modifier and Type | Method and Description |
|---|---|
void |
Request.setSession(Session newSess)
set the session - this method is not for general use
|
void |
SessionTracker.track(Session session)
Tracks the given session, by registering this SessionTracker as a
listener with the given session, and by incrementing the counter of
currently tracked sessions.
|
| Modifier and Type | Field and Description |
|---|---|
protected Session |
ApplicationHttpRequest.session
The currently active session for this request.
|
| Modifier and Type | Method and Description |
|---|---|
Session |
DummyRequest.getSessionInternal(boolean create) |
Session |
DummyRequest.lockSession() |
| Modifier and Type | Class and Description |
|---|---|
class |
StandardSession
Standard implementation of the Session interface.
|
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Session> |
ManagerBase.sessions
The set of currently active Sessions for this Manager, keyed by
session identifier.
|
| Modifier and Type | Method and Description |
|---|---|
Session |
ManagerBase.createEmptySession()
Get a session from the recycled ones or create a new empty one.
|
Session |
ManagerBase.createSession()
Construct and return a new session object, based on the default
settings specified by this Manager's properties.
|
Session |
PersistentManagerBase.createSession()
Return a new session object as long as the number of active
sessions does not exceed maxActiveSessions.
|
Session |
StandardManager.createSession()
Construct and return a new session object, based on the default
settings specified by this Manager's properties.
|
Session |
ManagerBase.createSession(String sessionId)
Construct and return a new session object, based on the default
settings specified by this Manager's properties, using the specified
session id.
|
Session |
PersistentManagerBase.createSession(String sessionId)
Construct and return a new session object, based on the default
settings specified by this Manager's properties, using the specified
session id.
|
Session |
StandardManager.createSession(String sessionId)
Construct and return a new session object, based on the default
settings specified by this Manager's properties, using the specified
session id.
|
Session |
ManagerBase.findSession(String id)
Return the active Session, associated with this Manager, with the
specified session id (if any); otherwise return
null. |
Session |
PersistentManagerBase.findSession(String id)
Return the active Session, associated with this Manager, with the
specified session id (if any); otherwise return
null. |
Session |
PersistentManagerBase.findSession(String id,
boolean removeCachedCopy)
Return the active Session, associated with this Manager, with the
specified session id (if any); otherwise return
null. |
Session |
ManagerBase.findSession(String id,
javax.servlet.http.HttpServletRequest request) |
Session |
CookiePersistentManager.findSession(String id,
javax.servlet.http.HttpServletRequest request) |
Session |
ManagerBase.findSession(String id,
String version)
Finds and returns the session with the given id that also satisfies
the given version requirement.
|
Session[] |
ManagerBase.findSessions()
Return the set of active Sessions associated with this Manager.
|
Session[] |
CookiePersistentManager.findSessions() |
Session |
FileStore.load(String id)
Load and return the Session associated with the specified session
identifier from this Store, without removing it.
|
Session |
JDBCStore.load(String id)
Load the Session associated with the id
id. |
Session |
StoreBase.load(String id,
String version)
Load and return the Session associated with the specified session
identifier from this Store, without removing it.
|
Session |
StoreBase.readSession(Manager manager,
ObjectInputStream ois)
Create a session object from an input stream.
|
protected Session |
PersistentManagerBase.superFindSession(String id)
used by subclasses of PersistentManagerBase
Hercules: added method
|
protected Session |
PersistentManagerBase.swapIn(String id)
Look for a session in the Store and, if found, restore
it in the Manager's list of active sessions if appropriate.
|
protected Session |
PersistentManagerBase.swapIn(String id,
String version)
Look for a session in the Store and, if found, restore
it in the Manager's list of active sessions if appropriate.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ManagerBase.add(Session session)
Add this Session to the set of active Sessions for this Manager.
|
void |
CookiePersistentManager.add(Session session) |
void |
ManagerBase.changeSessionId(Session session)
Change the session ID of the current session to a new randomly generated
session ID.
|
void |
ManagerBase.remove(Session session)
Remove this Session from the active Sessions for this Manager.
|
void |
CookiePersistentManager.remove(Session session) |
void |
PersistentManagerBase.remove(Session session)
Remove this Session from the active Sessions for this Manager,
and from the Store.
|
void |
PersistentManagerBase.remove(Session session,
boolean persistentRemove)
Remove this Session from the active Sessions for this Manager,
and from the Store.
|
void |
PersistentManagerBase.removeSuper(Session session)
Remove this Session from the active Sessions for this Manager,
but not from the Store.
|
void |
FileStore.save(Session session)
Save the specified Session into this Store.
|
void |
JDBCStore.save(Session session)
Save a session to the Store.
|
protected void |
PersistentManagerBase.swapOut(Session session)
Remove the session from the Manager's list of active
sessions and write it out to the Store.
|
javax.servlet.http.Cookie |
ManagerBase.toCookie(Session session) |
javax.servlet.http.Cookie |
CookiePersistentManager.toCookie(Session session) |
protected void |
PersistentManagerBase.writeSession(Session session)
Write the provided session to the Store without modifying
the copy in memory or triggering passivation events.
|
void |
StoreBase.writeSession(Session sess,
ObjectOutputStream oos)
Serialize a session into an output stream.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
PersistentValve.isSessionStale(Session session,
long timeNow)
Indicate whether the session has been idle for longer
than its expiration date as of the supplied time.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
HASingleSignOnEntry.addSession(SingleSignOn sso,
Session session) |
void |
HASingleSignOn.associate(String ssoId,
long ssoVersion,
Session session) |
void |
HASingleSignOnEntry.removeSession(Session session) |
protected void |
HASingleSignOn.removeSession(String ssoId,
Session session) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
HASession |
| Modifier and Type | Class and Description |
|---|---|
class |
BaseHASession |
class |
FullHASession |
class |
ModifiedAttributeHASession |
class |
ModifiedHASession |
| Modifier and Type | Method and Description |
|---|---|
Session |
ReplicationManagerBase.createEmptySession() |
Session |
ReplicationManagerBase.createNewSession() |
Session |
ModifiedAttributeSessionFactory.createSession(Manager mgr)
create a new session
|
Session |
ModifiedSessionFactory.createSession(Manager mgr)
create a new session
|
Session |
FullSessionFactory.createSession(Manager mgr)
create a new session
|
Session |
SessionFactory.createSession(Manager mgr) |
Session |
ReplicationManagerBase.findSession(String id,
String version) |
Session |
ReplicationStore.getSession(byte[] state,
long version) |
Session |
ReplicationAttributeStore.getSession(CompositeMetadata metadata) |
Session |
ReplicationStore.load(String id)
Load and return the Session associated with the specified session
identifier from this Store, without removing it.
|
Session |
ReplicationAttributeStore.load(String id,
String version) |
Session |
ReplicationStore.load(String id,
String version) |
| Modifier and Type | Method and Description |
|---|---|
void |
ReplicationWebEventPersistentManager.add(Session session) |
void |
ReplicationAttributeStore.doSave(Session session)
Save the specified Session into this Store.
|
void |
ReplicationStore.doSave(Session session)
Save the specified Session into this Store.
|
void |
WebEventPersistentManager.doValveSave(Session session) |
void |
ReplicationAttributeStore.doValveSave(Session session)
Save the specified Session into this Store.
|
abstract void |
ReplicationManagerBase.doValveSave(Session session) |
void |
ReplicationStore.doValveSave(Session session)
Save the specified Session into this Store.
|
void |
ReplicationWebEventPersistentManager.doValveSave(Session session)
called from valve; does the save of session
|
byte[] |
HAStoreBase.getByteArray(Session session)
Create serialized byte[] for
obj. |
protected byte[] |
HAStoreBase.getByteArray(Session session,
boolean compress)
Create an byte[] for the session that we can then pass to
the HA Store.
|
void |
ReplicationManagerBase.removeSessionFromManagerCache(Session session) |
void |
ReplicationAttributeStore.save(Session session)
Save the specified Session into this Store.
|
void |
ReplicationStore.save(Session session)
Save the specified Session into this Store.
|
void |
ReplicationStore.updateLastAccessTime(Session session)
update the lastaccess time of the specified Session into this Store.
|
void |
ReplicationAttributeStore.valveSave(Session session)
Save the specified Session into this Store.
|
void |
ReplicationStore.valveSave(Session session)
Save the specified Session into this Store.
|
Copyright © 2017. All rights reserved.