Package org.apache.catalina.ha.session
Class DeltaRequest
java.lang.Object
org.apache.catalina.ha.session.DeltaRequest
- All Implemented Interfaces:
Externalizable
,Serializable
This class is used to track the series of actions that happens when a request is executed. These actions will then
translate into invocations of methods on the actual session.
This class is NOT thread safe. One DeltaRequest per session.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final Log
static final String
static final String
static final String
static final String
static final String
protected static final StringManager
The string manager for this package.static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
addSessionListener
(SessionListener listener) void
clear()
void
execute
(DeltaSession session, boolean notifyListeners) int
getSize()
void
void
removeAttribute
(String name) void
removeNote
(String name) void
removeSessionListener
(SessionListener listener) void
reset()
protected byte[]
serialize DeltaRequestvoid
setAttribute
(String name, Object value) void
setAuthType
(String authType) void
setMaxInactiveInterval
(int interval) void
setNew
(boolean n) void
void
Only support principals from typeGenericPrincipal
void
setSessionId
(String sessionId) void
-
Field Details
-
log
-
sm
The string manager for this package. -
TYPE_ATTRIBUTE
public static final int TYPE_ATTRIBUTE- See Also:
-
TYPE_PRINCIPAL
public static final int TYPE_PRINCIPAL- See Also:
-
TYPE_ISNEW
public static final int TYPE_ISNEW- See Also:
-
TYPE_MAXINTERVAL
public static final int TYPE_MAXINTERVAL- See Also:
-
TYPE_AUTHTYPE
public static final int TYPE_AUTHTYPE- See Also:
-
TYPE_LISTENER
public static final int TYPE_LISTENER- See Also:
-
TYPE_NOTE
public static final int TYPE_NOTE- See Also:
-
ACTION_SET
public static final int ACTION_SET- See Also:
-
ACTION_REMOVE
public static final int ACTION_REMOVE- See Also:
-
NAME_PRINCIPAL
- See Also:
-
NAME_MAXINTERVAL
- See Also:
-
NAME_ISNEW
- See Also:
-
NAME_AUTHTYPE
- See Also:
-
NAME_LISTENER
- See Also:
-
-
Constructor Details
-
DeltaRequest
public DeltaRequest() -
DeltaRequest
-
-
Method Details
-
setAttribute
-
removeAttribute
-
setNote
-
removeNote
-
setMaxInactiveInterval
public void setMaxInactiveInterval(int interval) -
setPrincipal
Only support principals from typeGenericPrincipal
- Parameters:
p
- Session principal- See Also:
-
setNew
public void setNew(boolean n) -
setAuthType
-
addSessionListener
-
removeSessionListener
-
addAction
-
execute
-
reset
public void reset() -
getSessionId
-
setSessionId
-
getSize
public int getSize() -
clear
public void clear() -
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
serialize
serialize DeltaRequest- Returns:
- serialized delta request
- Throws:
IOException
- IO error serializing- See Also:
-