| Modifier and Type | Class and Description |
|---|---|
| protected static class |
| Modifier and Type | Field and Description |
|---|---|
| private Context | context
The Context with which this Manager is associated. |
| private int | count
Iteration count for background processing. |
| protected volatile int | |
| protected final AtomicLong | expiredSessions
Number of sessions that have expired. |
| private final Log | |
| protected volatile int | |
| protected int | maxActiveSessions
The maximum number of active Sessions allowed, or -1 for no limit. |
| private final Object | |
| private static final String | name
The descriptive name of this Manager implementation (for logging). |
| private boolean | |
| private boolean | |
| private boolean | persistAuthentication
Determines whether sessions managed by this manager shall persist (serialize) authentication information or not. |
| protected int | processExpiresFrequency
Frequency of the session expiration, and related manager operations. |
| protected long | processingTime
Processing time during session expiration. |
| protected int | rejectedSessions
Number of session creations that failed due to maxActiveSessions. |
| protected String | secureRandomAlgorithm
The name of the algorithm to use to create instances of |
| protected String | secureRandomClass
The Java class name of the secure random number generator class to be used when generating session identifiers. |
| protected String | secureRandomProvider
The name of the provider to use to create instances of |
| private boolean | |
| private Pattern | |
| private Pattern | |
| protected long | |
| protected final Deque | |
| protected final Deque | |
| protected SessionIdGenerator | |
| protected Class | |
| private boolean | |
| protected volatile int | sessionMaxAliveTime
The longest time (in seconds) that an expired session had been alive. |
| private final Object | |
| protected Map | sessions
The set of currently active Sessions for this Manager, keyed by session identifier. |
| protected static final StringManager | sm
The string manager for this package.
|
| protected final PropertyChangeSupport | support
The property change support for this component. |
| protected static final int | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(Session
Session to be added session)Implements org. Add this Session to the set of active Sessions for this Manager. |
| public void | addPropertyChangeListener(PropertyChangeListener
The listener to add listener)Implements org. Add a property change listener to this component. |
| public void | backgroundProcess()
Implements org. This method will be invoked by the context/container on a periodic basis and allows the manager to implement a method that executes periodic tasks, such as expiring sessions etc.
Direct call to |
| private static int | |
| public void | changeSessionId(Session
The session to change the session ID for session, String new session ID newId)Implements org. Change the session ID of the current session to a specified session ID. |
| protected void | changeSessionId(Session session, String newId, boolean notifySessionListeners, boolean notifyContainerListeners)
|
| public Session | createEmptySession()
Implements org. Get a session from the recycled ones or create a new empty one. |
| public Session | createSession(String
The session id which should be used to create the
new session; if sessionId)null, the session
id will be assigned by this method, and available via the getId()
method of the returned session.Implements org. Construct and return a new session object, based on the default settings specified by this Manager's properties. |
| public void | |
| public Session | findSession(String
The session id for the session to be returned id)Implements org. Return the active Session, associated with this Manager, with the
specified session id (if any); otherwise return |
| public Session[] | findSessions()
Implements org. Return the set of active Sessions associated with this Manager. |
| protected String | |
| public int | getActiveSessions()
Implements org. Gets the number of currently active sessions. |
| public String | |
| public Context | getContext()
Implements org. Get the Context with which this Manager is associated. |
| public String | |
| public long | |
| public String | getDomainInternal()
Implements abstract org. Method implemented by sub-classes to identify the domain in which MBeans should be registered. |
| public int | Returns: The count of duplicatesNumber of duplicated session IDs generated by the random source. |
| public Engine | |
| public long | getExpiredSessions()
Implements org. Gets the number of sessions that have expired. |
| public String | |
| public String | |
| public long | |
| public int | getMaxActive()
Implements org. Gets the maximum number of sessions that have been active at the same time. |
| public int | |
| public String | |
| protected StandardSession | Returns: a new session for use with this managerGet new session class to be used in the doLoad() method. |
| public boolean | getNotifyAttributeListenerOnUnchangedValue()
Overrides default org. When an attribute that is already present in the session is added again
under the same name and a |
| public boolean | getNotifyBindingListenerOnUnchangedValue()
Overrides default org. When an attribute that is already present in the session is added again
under the same name and the attribute implements |
| public String | getObjectNameKeyProperties()
Implements abstract org. Allow sub-classes to specify the key properties component of the
|
| public boolean | Returns: true, sessions managed by this manager shall persist authentication information; false
otherwiseReturn whether sessions managed by this manager shall persist authentication information or not. |
| public int | |
| public long | |
| public int | getRejectedSessions()
Implements org. Gets the number of sessions that were not created because the maximum number of active sessions was reached. |
| public String | |
| public String | |
| public String | |
| public HashMap | Returns: HashMap mapping session attribute names to the String representation of their values, or null if no session with the specified id exists, or if the session does not have any attributesSession id sessionId)Returns information about the session with the given session id. The session information is organized as a HashMap, mapping session attribute names to the String representation of their values. |
| public boolean | getSessionActivityCheck()
Overrides default org. If this is |
| public String | Returns: The attribute value for the specified session, if found, null otherwiseThe ID for the session of interest sessionId, String The key for the attribute to obtain key)For debugging. |
| public String | Returns: The regular expression currently used to filter attribute names.null means no filter is applied.
If an empty string is specified then no names will match the filter and all attributes will be
blocked.Obtain the regular expression used to filter session attribute based on attribute name. |
| protected Pattern | Returns: The pre-compiled pattern used to filter session attributes based on attribute name.null means no
filter is applied.Provides |
| public String | Returns: The regular expression currently used to filter class names.null means no filter is applied. If
an empty string is specified then no names will match the filter and all attributes will be blocked.Obtain the regular expression used to filter session attribute based on the implementation class of the value. |
| protected Pattern | Returns: The pre-compiled pattern used to filter session attributes based on the implementation class name of the value.null means no filter is applied.Provides |
| public int | getSessionAverageAliveTime()
Implements org. Gets the average time (in seconds) that expired sessions had been alive. |
| public long | getSessionCounter()
Implements org. Returns the total number of sessions created by this manager. |
| public int | getSessionCreateRate()
Implements org. Gets the current rate of session creation (in session per minute). |
| public int | Returns: The current rate (in sessions per minute) of session expirationImplements org. Gets the current rate of session expiration (in session per minute). |
| public SessionIdGenerator | |
| public boolean | getSessionLastAccessAtStart()
Overrides default org. If this is |
| public int | getSessionMaxAliveTime()
Implements org. Gets the longest time (in seconds) that an expired session had been alive. |
| public String | |
| public long | |
| public boolean | Returns: true if a warn level log message should be generatedShould a warn level log message be generated if a session attribute is not persisted / replicated / restored. |
| protected void | initInternal()
Overrides org. Sub-classes wishing to perform additional initialization should override this method, ensuring that super.initInternal() is the first call in the overriding method. |
| public String | |
| public void | |
| public void | remove(Session
Session to be removed session)Implements org. Remove this Session from the active Sessions for this Manager. |
| public void | remove(Session
Session to be removed session, boolean Should the expiration statistics be updated update)Implements org. Remove this Session from the active Sessions for this Manager. |
| public void | removePropertyChangeListener(PropertyChangeListener
The listener to remove listener)Implements org. Remove a property change listener from this component. |
| public String | rotateSessionId(Session
The session to change the session ID for session)Overrides default org. Change the session ID of the current session to a new randomly generated session ID. |
| public void | setContext(Context
The newly associated Context context)Implements org. Set the Context with which this Manager is associated. |
| public void | |
| public void | setExpiredSessions(long
Number of sessions that have expired expiredSessions)Implements org. Sets the number of sessions that have expired. |
| public void | setMaxActive(int
Maximum number of sessions that have been active at
the same time. maxActive)Implements org. (Re)sets the maximum number of sessions that have been active at the same time. |
| public void | setMaxActiveSessions(int
The new maximum number of sessions max)Set the maximum number of active Sessions allowed, or -1 for no limit. |
| public void | setNotifyAttributeListenerOnUnchangedValue(boolean
true the listener
will be called, false it will notImplements org. Configure if
|
| public void | setNotifyBindingListenerOnUnchangedValue(boolean
true the listener
will be called, false it will notImplements org. Configure if
|
| public void | setPersistAuthentication(boolean
if persistAuthentication)true, sessions managed by this manager shall persist authentication
informationSet whether sessions managed by this manager shall persist authentication information or not. |
| public void | setProcessExpiresFrequency(int
the new manager checks frequency processExpiresFrequency)Set the manager checks frequency. |
| public void | |
| public void | setSecureRandomAlgorithm(String
The new secure random number generator algorithm name secureRandomAlgorithm)Set the secure random number generator algorithm name. |
| public void | setSecureRandomClass(String
The new secure random number generator class name secureRandomClass)Set the secure random number generator class name. |
| public void | setSecureRandomProvider(String
The new secure random number generator provider name secureRandomProvider)Set the secure random number generator provider name. |
| public void | setSessionActivityCheck(boolean
the new flag value sessionActivityCheck)Implements org. Configure if Tomcat will track the number of active requests for each session. |
| public void | setSessionAttributeNameFilter(String
The regular expression to use to filter session attributes based on attribute
name. Use sessionAttributeNameFilter)null if no filtering is required. If an empty string is
specified then no names will match the filter and all attributes will be
blocked.Set the regular expression to use to filter session attributes based on attribute name. |
| public void | setSessionAttributeValueClassNameFilter(String
The regular expression to use to filter session attributes based on
class name. Use sessionAttributeValueClassNameFilter)null if no filtering is required. If an empty string is specified then no
names will match the filter and all attributes will be blocked.Set the regular expression to use to filter classes used for session attributes. |
| public void | setSessionCounter(long
Total number of sessions created by this manager. sessionCounter)Implements org. Sets the total number of sessions created by this manager. |
| public void | setSessionIdGenerator(SessionIdGenerator
The session id generator sessionIdGenerator)Implements org. Sets the session id generator |
| public void | setSessionLastAccessAtStart(boolean
the new flag value sessionLastAccessAtStart)Implements org. Configure if the last accessed time for sessions will be calculated from the beginning of the previous request. |
| public void | setSessionMaxAliveTime(int
Longest time (in seconds) that an expired
session had been alive. sessionMaxAliveTime)Implements org. Sets the longest time (in seconds) that an expired session had been alive. |
| public void | setWarnOnSessionAttributeFilterFailure(boolean
true if the warn level message should be generatedConfigure whether or not a warn level log message should be generated if a session attribute is not persisted / replicated / restored. |
| protected void | startInternal()
Implements abstract org. Sub-classes must ensure that the state is changed to
|
| protected void | stopInternal()
Implements abstract org. Sub-classes must ensure that the state is changed to
|
| public String | |
| public void | updateSessionMaxAliveTime(int
The candidate value (in seconds) for the new sessionMaxAliveTime value. sessionAliveTime)Updates the sessionMaxAliveTime attribute if the candidate value is larger than the current value. |
| public boolean | willAttributeDistribute(String
The attribute name name, Object The attribute value value)Implements org. Would the Manager distribute the given session attribute? |