public abstract class JMapRequest
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
pendingRequest |
protected boolean |
postProcessable |
static byte |
PROTOCOL_VERSION_4_0 |
static byte |
PROTOCOL_VERSION_5_0 |
static byte |
PROTOCOL_VERSION_7_0 |
protected int |
type
Deprecated.
|
| Constructor and Description |
|---|
JMapRequest() |
| Modifier and Type | Method and Description |
|---|---|
JMapRequestClient |
getClient()
Returns the optional client (or requester) associated with the request.
|
java.util.Locale |
getClientLocale() |
ConnectionProperties |
getConnectionProperties() |
byte |
getProtocolVersion() |
java.lang.Object |
getRequestContextValue(java.lang.String key)
Returns the value to which the specified key is mapped,
or
null if this request context contains no mapping for the key. |
int |
getSessionId()
Gets the session Id
|
int |
getType()
Deprecated.
|
boolean |
isCancelled()
Returns whether or not this request has been canceled.
|
boolean |
isPendingRequest()
Returns the 'pending request' flag for this request.
|
boolean |
isPostProcessable()
Returns the post processable flag for this request.
|
void |
putRequestContextValue(java.lang.String key,
java.lang.Object value)
Associates the specified value with the specified key in this request context.
|
void |
setCancelled(boolean cancelled)
Sets the canceled property of this request to the specified boolean value.
|
void |
setClient(JMapRequestClient client)
Sets the optional client (or requester) associated with the request that will
have its callback method called when the request execution completes.
|
void |
setClientLocale(java.util.Locale locale) |
void |
setPendingRequest(boolean pendingRequest)
Sets the 'pending request' flag.
|
void |
setPostProcessable(boolean postProcessable)
Sets the post processable flag.
|
void |
setSessionId(int id)
Sets the session Id
|
void |
setType(int type)
Deprecated.
|
java.lang.String |
toString() |
public static final byte PROTOCOL_VERSION_4_0
public static final byte PROTOCOL_VERSION_5_0
public static final byte PROTOCOL_VERSION_7_0
@Deprecated protected int type
protected transient boolean postProcessable
protected transient boolean pendingRequest
public byte getProtocolVersion()
public void setSessionId(int id)
id - the specified Idpublic int getSessionId()
@Deprecated public int getType()
@Deprecated public void setType(int type)
public void setClient(JMapRequestClient client)
client - the JMapRequestClient to locally keep with the requestpublic JMapRequestClient getClient()
public void setCancelled(boolean cancelled)
cancelled - the new state for the canceled property.public boolean isCancelled()
public boolean isPostProcessable()
OfflineRequestHandlerpublic void setPostProcessable(boolean postProcessable)
true and this request is
sent while in offline mode, the request will be kept until a reconnection.postProcessable - is the request post processableOfflineRequestHandlerpublic boolean isPendingRequest()
OfflineRequestHandlerpublic void setPendingRequest(boolean pendingRequest)
true
only if this request is a post processable request.pendingRequest - is this request is a pending requestOfflineRequestHandlerpublic ConnectionProperties getConnectionProperties()
public void putRequestContextValue(java.lang.String key,
java.lang.Object value)
key - key with which the specified value is to be associatedvalue - value to be associated with the specified keypublic java.lang.Object getRequestContextValue(java.lang.String key)
null if this request context contains no mapping for the key.key - the keypublic java.util.Locale getClientLocale()
public void setClientLocale(java.util.Locale locale)
public java.lang.String toString()
toString in class java.lang.Object