org.cometd.common
Class HashMapMessage
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<java.lang.String,java.lang.Object>
org.cometd.common.HashMapMessage
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>, Message, Message.Mutable, org.eclipse.jetty.util.ajax.JSON.Generator
public class HashMapMessage
- extends java.util.HashMap<java.lang.String,java.lang.Object>
- implements Message.Mutable, org.eclipse.jetty.util.ajax.JSON.Generator
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class java.util.AbstractMap |
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Fields inherited from interface org.cometd.bayeux.Message |
ADVICE_FIELD, CHANNEL_FIELD, CLIENT_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, SERVICE, SUBSCRIPTION_FIELD, SUCCESSFUL_FIELD, SUPPORTED_CONNECTION_TYPES_FIELD, TIMESTAMP_FIELD, TRANSPORT_FIELD, VERSION_FIELD |
Methods inherited from class java.util.HashMap |
clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
HashMapMessage
public HashMapMessage()
addJSON
public void addJSON(java.lang.StringBuffer buffer)
- Specified by:
addJSON
in interface org.eclipse.jetty.util.ajax.JSON.Generator
clear
public void clear()
- Specified by:
clear
in interface java.util.Map<java.lang.String,java.lang.Object>
- Overrides:
clear
in class java.util.HashMap<java.lang.String,java.lang.Object>
getAdvice
public java.util.Map<java.lang.String,java.lang.Object> getAdvice()
- Specified by:
getAdvice
in interface Message
getAssociated
public Message getAssociated()
getChannel
public java.lang.String getChannel()
- Specified by:
getChannel
in interface Message
getClientId
public java.lang.String getClientId()
- Specified by:
getClientId
in interface Message
getData
public java.lang.Object getData()
- Specified by:
getData
in interface Message
getDataAsMap
public java.util.Map<java.lang.String,java.lang.Object> getDataAsMap()
- Specified by:
getDataAsMap
in interface Message
getExt
public java.util.Map<java.lang.String,java.lang.Object> getExt()
- Specified by:
getExt
in interface Message
getId
public java.lang.Object getId()
- Specified by:
getId
in interface Message
getJSON
public java.lang.String getJSON()
- Specified by:
getJSON
in interface Message
getAdvice
public java.util.Map<java.lang.String,java.lang.Object> getAdvice(boolean create)
- Specified by:
getAdvice
in interface Message.Mutable
getDataAsMap
public java.util.Map<java.lang.String,java.lang.Object> getDataAsMap(boolean create)
- Specified by:
getDataAsMap
in interface Message.Mutable
getExt
public java.util.Map<java.lang.String,java.lang.Object> getExt(boolean create)
- Specified by:
getExt
in interface Message.Mutable
isLazy
public boolean isLazy()
- Lazy messages are queued but do not wake up waiting clients.
- Returns:
- true if message is lazy
isMeta
public boolean isMeta()
- Specified by:
isMeta
in interface Message
- Returns:
- True if the message is for a Meta channel
isSuccessful
public boolean isSuccessful()
- Specified by:
isSuccessful
in interface Message
setAssociated
public void setAssociated(Message associated)
setLazy
public void setLazy(boolean lazy)
- Lazy messages are queued but do not wake up waiting clients.
- Parameters:
lazy
- true if message is lazy
toString
public java.lang.String toString()
- Overrides:
toString
in class java.util.AbstractMap<java.lang.String,java.lang.Object>
setChannel
public void setChannel(java.lang.String channelId)
- Specified by:
setChannel
in interface Message.Mutable
setClientId
public void setClientId(java.lang.String clientId)
- Specified by:
setClientId
in interface Message.Mutable
setData
public void setData(java.lang.Object data)
- Specified by:
setData
in interface Message.Mutable
setId
public void setId(java.lang.Object id)
- Specified by:
setId
in interface Message.Mutable
setSuccessful
public void setSuccessful(boolean success)
- Specified by:
setSuccessful
in interface Message.Mutable
asImmutable
public Message asImmutable()
Copyright © 2010 Dojo Foundation. All Rights Reserved.