public class DeltaRequest extends Object implements Externalizable
Modifier and Type | Field and Description |
---|---|
static int |
ACTION_REMOVE |
static int |
ACTION_SET |
static Log |
log |
static String |
NAME_AUTHTYPE |
static String |
NAME_ISNEW |
static String |
NAME_LISTENER |
static String |
NAME_MAXINTERVAL |
static 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(String sessionId,
boolean recordAllActions) |
Modifier and Type | Method and Description |
---|---|
protected void |
addAction(int type,
int action,
String name,
Object value) |
void |
addSessionListener(SessionListener listener) |
void |
clear() |
void |
execute(DeltaSession session,
boolean notifyListeners) |
String |
getSessionId() |
int |
getSize() |
void |
readExternal(ObjectInput in) |
void |
removeAttribute(String name) |
void |
removeSessionListener(SessionListener listener) |
void |
reset() |
protected byte[] |
serialize()
serialize DeltaRequest
|
void |
setAttribute(String name,
Object value) |
void |
setAuthType(String authType) |
void |
setMaxInactiveInterval(int interval) |
void |
setNew(boolean n) |
void |
setPrincipal(Principal p)
convert principal at SerializablePrincipal for backup nodes.
|
void |
setSessionId(String sessionId) |
void |
writeExternal(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 String NAME_PRINCIPAL
public static final String NAME_MAXINTERVAL
public static final String NAME_ISNEW
public static final String NAME_AUTHTYPE
public static final String NAME_LISTENER
public DeltaRequest()
public DeltaRequest(String sessionId, boolean recordAllActions)
public void removeAttribute(String name)
public void setMaxInactiveInterval(int interval)
public void setPrincipal(Principal p)
GenericPrincipal
p
- Session principalGenericPrincipal
public void setNew(boolean n)
public void setAuthType(String authType)
public void addSessionListener(SessionListener listener)
public void removeSessionListener(SessionListener listener)
public void execute(DeltaSession session, boolean notifyListeners)
public void reset()
public String getSessionId()
public void setSessionId(String sessionId)
public int getSize()
public void clear()
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
protected byte[] serialize() throws IOException
IOException
- IO error serializingwriteExternal(java.io.ObjectOutput)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.