Top Description Inners Fields Constructors Methods
org.apache.catalina.session

public abstract Class PersistentManagerBase

extends ManagerBase
implements StoreManager
Class Inheritance
All Implemented Interfaces
org.apache.catalina.StoreManager, org.apache.catalina.DistributedManager
Known Direct Subclasses
org.apache.catalina.session.PersistentManager
Imports
java.io.IOException, java.security.AccessController, .PrivilegedActionException, .PrivilegedExceptionAction, java.util.Arrays, .HashMap, .HashSet, .Map, .Set, org.apache.catalina.Lifecycle, .LifecycleException, .LifecycleState, .Session, .Store, .StoreManager, org.apache.catalina.security.SecurityUtil, org.apache.juli.logging.Log, .LogFactory

Extends the ManagerBase class to implement most of the functionality required by a Manager which supports any kind of persistence, even if only for restarts.

Implementation Note

Correct behavior of session storing and reloading depends upon external calls to the Lifecycle#start() and Lifecycle#stop() methods of this class at the correct times.

Author
Craig R. McClanahan

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
private class
private class
private class
private class

Field Summary

Modifier and TypeField and Description
private final Log
protected int
maxIdleBackup

How long a session must be idle before it should be backed up.

protected int
maxIdleSwap

The maximum time in seconds a session may be idle before it is eligible to be swapped to disk due to inactivity.

protected int
minIdleSwap

The minimum time in seconds a session must be idle before it is eligible to be swapped to disk to keep the active session count below maxActiveSessions.

private static final String
name

Hides org.apache.catalina.session.ManagerBase.name.

The descriptive name of this Manager implementation (for logging).
private static final String
PERSISTED_LAST_ACCESSED_TIME

Key of the note of a session in which the timestamp of last backup is stored.

protected boolean
saveOnRestart

Whether to save and reload sessions when the Manager unload and load methods are called.

private final Map<String, Object>
sessionSwapInLocks

Sessions currently being swapped in and the associated locks

private final ThreadLocal<Session>
protected Store
store

Store object which will manage the Session store.

Inherited from org.apache.catalina.session.ManagerBase:
duplicatesexpiredSessionsmaxActivemaxActiveSessionsprocessExpiresFrequencyprocessingTimerejectedSessionssecureRandomAlgorithmsecureRandomClasssecureRandomProvidersessionCountersessionCreationTimingsessionExpirationTimingsessionIdGeneratorsessionIdGeneratorClasssessionMaxAliveTimesessionssmsupportTIMING_STATS_CACHE_SIZE

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
clearStore()

Clear all sessions from the Store.

public Session
findSession(String
The session id for the session to be returned
id
)

Overrides org.apache.catalina.session.ManagerBase.findSession.

Implements org.apache.catalina.Manager.findSession.

Return the active Session, associated with this Manager, with the specified session id (if any); otherwise return null.

public int
getActiveSessionsFull()

Implements org.apache.catalina.DistributedManager.getActiveSessionsFull.

Returns the total session count for primary, backup and proxy.

public int

Returns:

the timeout after which sessions are ripe for back up
getMaxIdleBackup
()

Indicates how many seconds old a session can get, after its last use in a request, before it should be backed up to the store.

public int

Returns:

The maximum time in seconds a session may be idle before it is eligible to be swapped to disk due to inactivity. A value of -1 means sessions should not be swapped out just because of inactivity.
getMaxIdleSwap
()

public int

Returns:

The minimum time in seconds a session must be idle before it is eligible to be swapped to disk to keep the active session count below maxActiveSessions. A value of -1 means sessions will not be swapped out to keep the active session count down.
getMinIdleSwap
()

public String
public boolean

Returns:

true, when sessions should be saved on restart, {code false} otherwise
getSaveOnRestart
()

Indicates whether sessions are saved when the Manager is shut down properly.

public Set<String>
getSessionIdsFull()

Implements org.apache.catalina.DistributedManager.getSessionIdsFull.

Returns the list of all sessions IDS (primary, backup and proxy).

public Store

Returns:

the Store object which manages persistent Session storage for this Manager.
getStore
()

Implements org.apache.catalina.StoreManager.getStore.

public boolean

Returns:

true, if the session id is loaded in memory otherwise false is returned
isLoaded
(String
The session id for the session to be searched for
id
)

Check, whether a session is loaded in memory

public void
load()

Implements org.apache.catalina.Manager.load.

Load all sessions found in the persistence mechanism, assuming they are marked as valid and have not passed their expiration limit.

private Session
public void
processExpires()

Overrides org.apache.catalina.session.ManagerBase.processExpires.

Invalidate all sessions that have expired.

protected void
processMaxActiveSwaps()

Swap idle sessions out to Store if too many are active

protected void
processMaxIdleBackups()

Back up idle sessions.

protected void
processMaxIdleSwaps()

Swap idle sessions out to Store if they are idle too long.

public void
processPersistenceChecks()

Called by the background thread after active sessions have been checked for expiration, to allow sessions to be swapped out, backed up, etc.

private void
public void
remove(Session
Session to be removed
session
,
boolean
Should the expiration statistics be updated
update
)

Overrides org.apache.catalina.session.ManagerBase.remove.

Implements org.apache.catalina.Manager.remove.

Remove this Session from the active Sessions for this Manager.

protected void
removeSession(String
Session's id to be removed
id
)

Remove this Session from the active Sessions for this Manager, and from the Store.

public void
removeSuper(Session
Session to be removed
session
)

Implements org.apache.catalina.StoreManager.removeSuper.

Remove this Session from the active Sessions for this Manager, but not from the Store.

private Session
public void
setMaxIdleBackup(int
The number of seconds after their last accessed time when they should be written to the Store.
backup
)

Sets the option to back sessions up to the Store after they are used in a request.

public void
setMaxIdleSwap(int
time in seconds to wait for possible swap out
max
)

Sets the maximum time in seconds a session may be idle before it is eligible to be swapped to disk due to inactivity.

public void
setMinIdleSwap(int
time in seconds before a possible swap out
min
)

Sets the minimum time in seconds a session must be idle before it is eligible to be swapped to disk to keep the active session count below maxActiveSessions.

public void
setSaveOnRestart(boolean
true if sessions should be saved on restart, false if they should be ignored.
saveOnRestart
)

Set the option to save sessions to the Store when the Manager is shut down, then loaded when the Manager starts again.

public void
setStore(Store
the associated Store
store
)

Set the Store object which will manage persistent Session storage for this Manager.

protected void
protected void
protected Session

Returns:

restored session, or null, if none is found
swapIn
(String
The id of the session that should be swapped in
id
)

Look for a session in the Store and, if found, restore it in the Manager's list of active sessions if appropriate.

protected void
swapOut(Session
The Session to write out
session
)

Remove the session from the Manager's list of active sessions and write it out to the Store.

public void
unload()

Implements org.apache.catalina.Manager.unload.

Save all currently active sessions in the appropriate persistence mechanism, if any.

protected void
writeSession(Session
The session that should be written
session
)

Write the provided session to the Store without modifying the copy in memory or triggering passivation events.

Inherited from org.apache.catalina.session.ManagerBase:
addaddPropertyChangeListenerbackgroundProcesschangeSessionIdchangeSessionIdcreateEmptySessioncreateSessionexpireSessionfindSessionsgenerateSessionIdgetActiveSessionsgetClassNamegetContextgetCreationTimegetCreationTimestampgetDomainInternalgetDuplicatesgetEnginegetExpiredSessionsgetJvmRoutegetLastAccessedTimegetLastAccessedTimestampgetMaxActivegetMaxActiveSessionsgetNewSessiongetNotifyAttributeListenerOnUnchangedValuegetNotifyBindingListenerOnUnchangedValuegetObjectNameKeyPropertiesgetPersistAuthenticationgetProcessExpiresFrequencygetProcessingTimegetRejectedSessionsgetSecureRandomAlgorithmgetSecureRandomClassgetSecureRandomProvidergetSessiongetSessionActivityCheckgetSessionAttributegetSessionAttributeNameFiltergetSessionAttributeNamePatterngetSessionAttributeValueClassNameFiltergetSessionAttributeValueClassNamePatterngetSessionAverageAliveTimegetSessionCountergetSessionCreateRategetSessionExpireRategetSessionIdGeneratorgetSessionLastAccessAtStartgetSessionMaxAliveTimegetThisAccessedTimegetThisAccessedTimestampgetWarnOnSessionAttributeFilterFailureinitInternallistSessionIdsremoveremovePropertyChangeListenerrotateSessionIdsetContextsetDuplicatessetExpiredSessionssetMaxActivesetMaxActiveSessionssetNotifyAttributeListenerOnUnchangedValuesetNotifyBindingListenerOnUnchangedValuesetPersistAuthenticationsetProcessExpiresFrequencysetProcessingTimesetSecureRandomAlgorithmsetSecureRandomClasssetSecureRandomProvidersetSessionActivityChecksetSessionAttributeNameFiltersetSessionAttributeValueClassNameFiltersetSessionCountersetSessionIdGeneratorsetSessionLastAccessAtStartsetSessionMaxAliveTimesetWarnOnSessionAttributeFilterFailuretoStringupdateSessionMaxAliveTimewillAttributeDistribute

Field Detail

logback to summary
private final Log log

Hides org.apache.catalina.session.ManagerBase.log.

maxIdleBackupback to summary
protected int maxIdleBackup

How long a session must be idle before it should be backed up. -1 means sessions won't be backed up.

maxIdleSwapback to summary
protected int maxIdleSwap

The maximum time in seconds a session may be idle before it is eligible to be swapped to disk due to inactivity. Setting this to -1 means sessions should not be swapped out just because of inactivity.

minIdleSwapback to summary
protected int minIdleSwap

The minimum time in seconds a session must be idle before it is eligible to be swapped to disk to keep the active session count below maxActiveSessions. Setting to -1 means sessions will not be swapped out to keep the active session count down.

nameback to summary
private static final String name

Hides org.apache.catalina.session.ManagerBase.name.

The descriptive name of this Manager implementation (for logging).

PERSISTED_LAST_ACCESSED_TIMEback to summary
private static final String PERSISTED_LAST_ACCESSED_TIME

Key of the note of a session in which the timestamp of last backup is stored.

saveOnRestartback to summary
protected boolean saveOnRestart

Whether to save and reload sessions when the Manager unload and load methods are called.

sessionSwapInLocksback to summary
private final Map<String, Object> sessionSwapInLocks

Sessions currently being swapped in and the associated locks

sessionToSwapInback to summary
private final ThreadLocal<Session> sessionToSwapIn
storeback to summary
protected Store store

Store object which will manage the Session store.

Constructor Detail

PersistentManagerBaseback to summary
public PersistentManagerBase()

Method Detail

clearStoreback to summary
public void clearStore()

Clear all sessions from the Store.

findSessionback to summary
public Session findSession(String id) throws IOException

Overrides org.apache.catalina.session.ManagerBase.findSession.

Implements org.apache.catalina.Manager.findSession.

Doc from org.apache.catalina.Manager.findSession.

Return the active Session, associated with this Manager, with the specified session id (if any); otherwise return null.

This method checks the persistence store if persistence is enabled, otherwise just uses the functionality from ManagerBase.

Parameters
id:String

The session id for the session to be returned

Returns:Session

the request session or null if a session with the requested ID could not be found

Annotations
@Override
Exceptions
IOException:
if an input/output error occurs while processing this request
getActiveSessionsFullback to summary
public int getActiveSessionsFull()

Implements org.apache.catalina.DistributedManager.getActiveSessionsFull.

Doc from org.apache.catalina.DistributedManager.getActiveSessionsFull.

Returns the total session count for primary, backup and proxy.

Returns:int

The total session count across the cluster.

Annotations
@Override
getMaxIdleBackupback to summary
public int getMaxIdleBackup()

Indicates how many seconds old a session can get, after its last use in a request, before it should be backed up to the store. -1 means sessions are not backed up.

Returns:int

the timeout after which sessions are ripe for back up

getMaxIdleSwapback to summary
public int getMaxIdleSwap()
Returns:int

The maximum time in seconds a session may be idle before it is eligible to be swapped to disk due to inactivity. A value of -1 means sessions should not be swapped out just because of inactivity.

getMinIdleSwapback to summary
public int getMinIdleSwap()
Returns:int

The minimum time in seconds a session must be idle before it is eligible to be swapped to disk to keep the active session count below maxActiveSessions. A value of -1 means sessions will not be swapped out to keep the active session count down.

getNameback to summary
public String getName()

Overrides org.apache.catalina.session.ManagerBase.getName.

Returns:String

Doc from org.apache.catalina.session.ManagerBase.getName.

The descriptive short name of this Manager implementation.

Annotations
@Override
getSaveOnRestartback to summary
public boolean getSaveOnRestart()

Indicates whether sessions are saved when the Manager is shut down properly. This requires the unload() method to be called.

Returns:boolean

true, when sessions should be saved on restart, {code false} otherwise

getSessionIdsFullback to summary
public Set<String> getSessionIdsFull()

Implements org.apache.catalina.DistributedManager.getSessionIdsFull.

Doc from org.apache.catalina.DistributedManager.getSessionIdsFull.

Returns the list of all sessions IDS (primary, backup and proxy).

Returns:Set<String>

The complete set of sessions IDs across the cluster.

Annotations
@Override
getStoreback to summary
public Store getStore()

Implements org.apache.catalina.StoreManager.getStore.

Returns:Store

the Store object which manages persistent Session storage for this Manager.

Annotations
@Override
isLoadedback to summary
public boolean isLoaded(String id)

Check, whether a session is loaded in memory

Parameters
id:String

The session id for the session to be searched for

Returns:boolean

true, if the session id is loaded in memory otherwise false is returned

loadback to summary
public void load()

Implements org.apache.catalina.Manager.load.

Load all sessions found in the persistence mechanism, assuming they are marked as valid and have not passed their expiration limit. If persistence is not supported, this method returns without doing anything.

Note that by default, this method is not called by the MiddleManager class. In order to use it, a subclass must specifically call it, for example in the start() and/or processPersistenceChecks() methods.

Annotations
@Override
loadSessionFromStoreback to summary
private Session loadSessionFromStore(String id) throws IOException
processExpiresback to summary
public void processExpires()

Overrides org.apache.catalina.session.ManagerBase.processExpires.

Doc from org.apache.catalina.session.ManagerBase.processExpires.

Invalidate all sessions that have expired.

Direct call to processExpires and processPersistenceChecks

Annotations
@Override
processMaxActiveSwapsback to summary
protected void processMaxActiveSwaps()

Swap idle sessions out to Store if too many are active

processMaxIdleBackupsback to summary
protected void processMaxIdleBackups()

Back up idle sessions.

processMaxIdleSwapsback to summary
protected void processMaxIdleSwaps()

Swap idle sessions out to Store if they are idle too long.

processPersistenceChecksback to summary
public void processPersistenceChecks()

Called by the background thread after active sessions have been checked for expiration, to allow sessions to be swapped out, backed up, etc.

reactivateLoadedSessionback to summary
private void reactivateLoadedSession(String id, Session session)
removeback to summary
public void remove(Session session, boolean update)

Overrides org.apache.catalina.session.ManagerBase.remove.

Implements org.apache.catalina.Manager.remove.

Doc from org.apache.catalina.Manager.remove.

Remove this Session from the active Sessions for this Manager.

Remove this Session from the Store.

Parameters
session:Session

Session to be removed

update:boolean

Should the expiration statistics be updated

Annotations
@Override
removeSessionback to summary
protected void removeSession(String id)

Remove this Session from the active Sessions for this Manager, and from the Store.

Parameters
id:String

Session's id to be removed

removeSuperback to summary
public void removeSuper(Session session)

Implements org.apache.catalina.StoreManager.removeSuper.

Remove this Session from the active Sessions for this Manager, but not from the Store. (Used by the PersistentValve)

Parameters
session:Session

Session to be removed

Annotations
@Override
securedStoreLoadback to summary
private Session securedStoreLoad(String id) throws IOException, ClassNotFoundException
setMaxIdleBackupback to summary
public void setMaxIdleBackup(int backup)

Sets the option to back sessions up to the Store after they are used in a request. Sessions remain available in memory after being backed up, so they are not passivated as they are when swapped out. The value set indicates how old a session may get (since its last use) before it must be backed up: -1 means sessions are not backed up.

Note that this is not a hard limit: sessions are checked against this age limit periodically according to processExpiresFrequency. This value should be considered to indicate when a session is ripe for backing up.

So it is possible that a session may be idle for maxIdleBackup + processExpiresFrequency * engine.backgroundProcessorDelay seconds, plus the time it takes to handle other session expiration, swapping, etc. tasks.

Parameters
backup:int

The number of seconds after their last accessed time when they should be written to the Store.

setMaxIdleSwapback to summary
public void setMaxIdleSwap(int max)

Sets the maximum time in seconds a session may be idle before it is eligible to be swapped to disk due to inactivity. Setting this to -1 means sessions should not be swapped out just because of inactivity.

Parameters
max:int

time in seconds to wait for possible swap out

setMinIdleSwapback to summary
public void setMinIdleSwap(int min)

Sets the minimum time in seconds a session must be idle before it is eligible to be swapped to disk to keep the active session count below maxActiveSessions. Setting to -1 means sessions will not be swapped out to keep the active session count down.

Parameters
min:int

time in seconds before a possible swap out

setSaveOnRestartback to summary
public void setSaveOnRestart(boolean saveOnRestart)

Set the option to save sessions to the Store when the Manager is shut down, then loaded when the Manager starts again. If set to false, any sessions found in the Store may still be picked up when the Manager is started again.

Parameters
saveOnRestart:boolean

true if sessions should be saved on restart, false if they should be ignored.

setStoreback to summary
public void setStore(Store store)

Set the Store object which will manage persistent Session storage for this Manager.

Parameters
store:Store

the associated Store

startInternalback to summary
protected void startInternal() throws LifecycleException

Overrides org.apache.catalina.session.ManagerBase.startInternal.

Start this component and implement the requirements of org.apache.catalina.util.LifecycleBase#startInternal().

Annotations
@Override
Exceptions
LifecycleException:
if this component detects a fatal error that prevents this component from being used
stopInternalback to summary
protected void stopInternal() throws LifecycleException

Overrides org.apache.catalina.session.ManagerBase.stopInternal.

Stop this component and implement the requirements of org.apache.catalina.util.LifecycleBase#stopInternal().

Annotations
@Override
Exceptions
LifecycleException:
if this component detects a fatal error that prevents this component from being used
swapInback to summary
protected Session swapIn(String id) throws IOException

Look for a session in the Store and, if found, restore it in the Manager's list of active sessions if appropriate. The session will be removed from the Store after swapping in, but will not be added to the active session list if it is invalid or past its expiration.

Parameters
id:String

The id of the session that should be swapped in

Returns:Session

restored session, or null, if none is found

Exceptions
IOException:
an IO error occurred
swapOutback to summary
protected void swapOut(Session session) throws IOException

Remove the session from the Manager's list of active sessions and write it out to the Store. If the session is past its expiration or invalid, this method does nothing.

Parameters
session:Session

The Session to write out

Exceptions
IOException:
an IO error occurred
unloadback to summary
public void unload()

Implements org.apache.catalina.Manager.unload.

Save all currently active sessions in the appropriate persistence mechanism, if any. If persistence is not supported, this method returns without doing anything.

Note that by default, this method is not called by the MiddleManager class. In order to use it, a subclass must specifically call it, for example in the stop() and/or processPersistenceChecks() methods.

Annotations
@Override
writeSessionback to summary
protected void writeSession(Session session) throws IOException

Write the provided session to the Store without modifying the copy in memory or triggering passivation events. Does nothing if the session is invalid or past its expiration.

Parameters
session:Session

The session that should be written

Exceptions
IOException:
an IO error occurred
org.apache.catalina.session back to summary

private Class PersistentManagerBase.PrivilegedStoreClear

extends Object
implements PrivilegedExceptionAction<Void>
Class Inheritance
  • java.lang.Object
  • org.apache.catalina.session.PersistentManagerBase.PrivilegedStoreClear
All Implemented Interfaces
java.security.PrivilegedExceptionAction

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Void
run()

Implements java.security.PrivilegedExceptionAction.run.

Performs the computation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PrivilegedStoreClearback to summary
pack-priv PrivilegedStoreClear()

Method Detail

runback to summary
public Void run() throws Exception

Implements java.security.PrivilegedExceptionAction.run.

Doc from java.security.PrivilegedExceptionAction.run.

Performs the computation. This method will be called by AccessController.doPrivileged after enabling privileges.

Returns:Void

a class-dependent value that may represent the results of the computation. Each class that implements PrivilegedExceptionAction should document what (if anything) this value represents.

Annotations
@Override
Exceptions
Exception:
an exceptional condition has occurred. Each class that implements PrivilegedExceptionAction should document the exceptions that its run method can throw.
org.apache.catalina.session back to summary

private Class PersistentManagerBase.PrivilegedStoreKeys

extends Object
implements PrivilegedExceptionAction<String[]>
Class Inheritance
  • java.lang.Object
  • org.apache.catalina.session.PersistentManagerBase.PrivilegedStoreKeys
All Implemented Interfaces
java.security.PrivilegedExceptionAction

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public String[]
run()

Implements java.security.PrivilegedExceptionAction.run.

Performs the computation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PrivilegedStoreKeysback to summary
pack-priv PrivilegedStoreKeys()

Method Detail

runback to summary
public String[] run() throws Exception

Implements java.security.PrivilegedExceptionAction.run.

Doc from java.security.PrivilegedExceptionAction.run.

Performs the computation. This method will be called by AccessController.doPrivileged after enabling privileges.

Returns:String[]

a class-dependent value that may represent the results of the computation. Each class that implements PrivilegedExceptionAction should document what (if anything) this value represents.

Annotations
@Override
Exceptions
Exception:
an exceptional condition has occurred. Each class that implements PrivilegedExceptionAction should document the exceptions that its run method can throw.
org.apache.catalina.session back to summary

private Class PersistentManagerBase.PrivilegedStoreLoad

extends Object
implements PrivilegedExceptionAction<Session>
Class Inheritance
  • java.lang.Object
  • org.apache.catalina.session.PersistentManagerBase.PrivilegedStoreLoad
All Implemented Interfaces
java.security.PrivilegedExceptionAction

Field Summary

Modifier and TypeField and Description
private String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Session
run()

Implements java.security.PrivilegedExceptionAction.run.

Performs the computation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

idback to summary
private String id

Constructor Detail

PrivilegedStoreLoadback to summary
pack-priv PrivilegedStoreLoad(String id)

Method Detail

runback to summary
public Session run() throws Exception

Implements java.security.PrivilegedExceptionAction.run.

Doc from java.security.PrivilegedExceptionAction.run.

Performs the computation. This method will be called by AccessController.doPrivileged after enabling privileges.

Returns:Session

a class-dependent value that may represent the results of the computation. Each class that implements PrivilegedExceptionAction should document what (if anything) this value represents.

Annotations
@Override
Exceptions
Exception:
an exceptional condition has occurred. Each class that implements PrivilegedExceptionAction should document the exceptions that its run method can throw.
org.apache.catalina.session back to summary

private Class PersistentManagerBase.PrivilegedStoreRemove

extends Object
implements PrivilegedExceptionAction<Void>
Class Inheritance
  • java.lang.Object
  • org.apache.catalina.session.PersistentManagerBase.PrivilegedStoreRemove
All Implemented Interfaces
java.security.PrivilegedExceptionAction

Field Summary

Modifier and TypeField and Description
private String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Void
run()

Implements java.security.PrivilegedExceptionAction.run.

Performs the computation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

idback to summary
private String id

Constructor Detail

PrivilegedStoreRemoveback to summary
pack-priv PrivilegedStoreRemove(String id)

Method Detail

runback to summary
public Void run() throws Exception

Implements java.security.PrivilegedExceptionAction.run.

Doc from java.security.PrivilegedExceptionAction.run.

Performs the computation. This method will be called by AccessController.doPrivileged after enabling privileges.

Returns:Void

a class-dependent value that may represent the results of the computation. Each class that implements PrivilegedExceptionAction should document what (if anything) this value represents.

Annotations
@Override
Exceptions
Exception:
an exceptional condition has occurred. Each class that implements PrivilegedExceptionAction should document the exceptions that its run method can throw.
org.apache.catalina.session back to summary

private Class PersistentManagerBase.PrivilegedStoreSave

extends Object
implements PrivilegedExceptionAction<Void>
Class Inheritance
  • java.lang.Object
  • org.apache.catalina.session.PersistentManagerBase.PrivilegedStoreSave
All Implemented Interfaces
java.security.PrivilegedExceptionAction

Field Summary

Modifier and TypeField and Description
private Session

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Void
run()

Implements java.security.PrivilegedExceptionAction.run.

Performs the computation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

sessionback to summary
private Session session

Constructor Detail

PrivilegedStoreSaveback to summary
pack-priv PrivilegedStoreSave(Session session)

Method Detail

runback to summary
public Void run() throws Exception

Implements java.security.PrivilegedExceptionAction.run.

Doc from java.security.PrivilegedExceptionAction.run.

Performs the computation. This method will be called by AccessController.doPrivileged after enabling privileges.

Returns:Void

a class-dependent value that may represent the results of the computation. Each class that implements PrivilegedExceptionAction should document what (if anything) this value represents.

Annotations
@Override
Exceptions
Exception:
an exceptional condition has occurred. Each class that implements PrivilegedExceptionAction should document the exceptions that its run method can throw.