public class ServerMessageImpl extends HashMapMessage implements ServerMessage.Mutable
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>ServerMessage.MutableADVICE_FIELD, CHANNEL_FIELD, CLIENT_ID_FIELD, CONNECTION_TYPE_FIELD, DATA_FIELD, ERROR_FIELD, EXT_FIELD, ID_FIELD, INTERVAL_FIELD, MIN_VERSION_FIELD, RECONNECT_FIELD, RECONNECT_HANDSHAKE_VALUE, RECONNECT_NONE_VALUE, RECONNECT_RETRY_VALUE, SUBSCRIPTION_FIELD, SUCCESSFUL_FIELD, SUPPORTED_CONNECTION_TYPES_FIELD, TIMEOUT_FIELD, TIMESTAMP_FIELD, TRANSPORT_FIELD, VERSION_FIELD| Constructor and Description |
|---|
ServerMessageImpl() |
| Modifier and Type | Method and Description |
|---|---|
Set<Map.Entry<String,Object>> |
entrySet() |
protected void |
freeze(String json) |
Map<String,Object> |
getAdvice() |
ServerMessage.Mutable |
getAssociated() |
Object |
getData() |
Map<String,Object> |
getDataAsMap() |
Map<String,Object> |
getExt() |
String |
getJSON() |
protected boolean |
isFrozen() |
boolean |
isLazy() |
static ServerMessage.Mutable[] |
parseServerMessages(Reader reader,
boolean jsonDebug)
Deprecated.
|
static ServerMessage.Mutable[] |
parseServerMessages(String json)
Deprecated.
|
Object |
put(String key,
Object value) |
void |
setAssociated(ServerMessage.Mutable associated) |
void |
setLazy(boolean lazy) |
getAdvice, getChannel, getChannelId, getClientId, getDataAsMap, getExt, getId, isMeta, isSuccessful, parseMessages, setChannel, setClientId, setData, setId, setSuccessfulclear, clone, containsKey, containsValue, get, isEmpty, keySet, putAll, remove, size, valuesequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitgetAdvice, getDataAsMap, getExt, setChannel, setClientId, setData, setId, setSuccessfulgetChannel, getChannelId, getClientId, getId, isMeta, isSuccessfulpublic ServerMessage.Mutable getAssociated()
getAssociated in interface ServerMessagepublic void setAssociated(ServerMessage.Mutable associated)
setAssociated in interface ServerMessage.Mutablepublic boolean isLazy()
isLazy in interface ServerMessagepublic void setLazy(boolean lazy)
setLazy in interface ServerMessage.Mutableprotected void freeze(String json)
protected boolean isFrozen()
public String getJSON()
getJSON in interface MessagegetJSON in class HashMapMessagepublic Object getData()
getData in interface MessagegetData in class HashMapMessagepublic Map<String,Object> getDataAsMap()
getDataAsMap in interface MessagegetDataAsMap in class HashMapMessagepublic Map<String,Object> getExt()
getExt in interface MessagegetExt in class HashMapMessagepublic Map<String,Object> getAdvice()
getAdvice in interface MessagegetAdvice in class HashMapMessage@Deprecated public static ServerMessage.Mutable[] parseServerMessages(Reader reader, boolean jsonDebug) throws ParseException, IOException
Parses the content of the given reader into an array of ServerMessage.Mutables.
reader - the reader to read fromjsonDebug - whether or not read the whole content of the reader into a string and then parse the stringServerMessage.MutablesParseException - if the parsing failsIOException - if reading from the reader fails@Deprecated public static ServerMessage.Mutable[] parseServerMessages(String json) throws ParseException
Parses the given string into an array of ServerMessage.Mutables.
json - the string to parseServerMessage.MutablesParseException - if the parsing failsCopyright © 2008-2012 Dojo Foundation. All Rights Reserved.