public class DeltaRequest
extends java.lang.Object
implements java.io.Externalizable
Modifier and Type | Field and Description |
---|---|
static int |
ACTION_REMOVE |
static int |
ACTION_SET |
static Log |
log |
static java.lang.String |
NAME_AUTHTYPE |
static java.lang.String |
NAME_ISNEW |
static java.lang.String |
NAME_LISTENER |
static java.lang.String |
NAME_MAXINTERVAL |
static java.lang.String |
NAME_PRINCIPAL |
protected static StringManager |
sm
The string manager for this package.
|
static int |
TYPE_ATTRIBUTE |
static int |
TYPE_AUTHTYPE |
static int |
TYPE_ISNEW |
static int |
TYPE_LISTENER |
static int |
TYPE_MAXINTERVAL |
static int |
TYPE_PRINCIPAL |
Constructor and Description |
---|
DeltaRequest() |
DeltaRequest(java.lang.String sessionId,
boolean recordAllActions) |
Modifier and Type | Method and Description |
---|---|
protected void |
addAction(int type,
int action,
java.lang.String name,
java.lang.Object value) |
void |
addSessionListener(SessionListener listener) |
void |
clear() |
void |
execute(DeltaSession session,
boolean notifyListeners) |
java.lang.String |
getSessionId() |
int |
getSize() |
void |
readExternal(java.io.ObjectInput in) |
void |
removeAttribute(java.lang.String name) |
void |
removeSessionListener(SessionListener listener) |
void |
reset() |
protected byte[] |
serialize()
serialize DeltaRequest
|
void |
setAttribute(java.lang.String name,
java.lang.Object value) |
void |
setAuthType(java.lang.String authType) |
void |
setMaxInactiveInterval(int interval) |
void |
setNew(boolean n) |
void |
setPrincipal(java.security.Principal p)
Only support principals from type
GenericPrincipal |
void |
setSessionId(java.lang.String sessionId) |
void |
writeExternal(java.io.ObjectOutput out) |
public static final Log log
protected static final StringManager sm
public static final int TYPE_ATTRIBUTE
public static final int TYPE_PRINCIPAL
public static final int TYPE_ISNEW
public static final int TYPE_MAXINTERVAL
public static final int TYPE_AUTHTYPE
public static final int TYPE_LISTENER
public static final int ACTION_SET
public static final int ACTION_REMOVE
public static final java.lang.String NAME_PRINCIPAL
public static final java.lang.String NAME_MAXINTERVAL
public static final java.lang.String NAME_ISNEW
public static final java.lang.String NAME_AUTHTYPE
public static final java.lang.String NAME_LISTENER
public DeltaRequest()
public DeltaRequest(java.lang.String sessionId, boolean recordAllActions)
public void setAttribute(java.lang.String name, java.lang.Object value)
public void removeAttribute(java.lang.String name)
public void setMaxInactiveInterval(int interval)
public void setPrincipal(java.security.Principal p)
GenericPrincipal
p
- Session principalGenericPrincipal
public void setNew(boolean n)
public void setAuthType(java.lang.String authType)
public void addSessionListener(SessionListener listener)
public void removeSessionListener(SessionListener listener)
protected void addAction(int type, int action, java.lang.String name, java.lang.Object value)
public void execute(DeltaSession session, boolean notifyListeners)
public void reset()
public java.lang.String getSessionId()
public void setSessionId(java.lang.String sessionId)
public int getSize()
public void clear()
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
protected byte[] serialize() throws java.io.IOException
java.io.IOException
writeExternal(java.io.ObjectOutput)
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.