Package org.cometd.common
Class HashMapMessage
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>,Message,Message.Mutable
public class HashMapMessage extends HashMap<String,Object> implements Message.Mutable, Serializable
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object> -
Field Summary
Fields inherited from interface org.cometd.bayeux.Message
ADVICE_FIELD, CHANNEL_FIELD, CLIENT_ID_FIELD, CONNECTION_TYPE_FIELD, DATA_FIELD, ERROR_FIELD, EXT_FIELD, ID_FIELD, INTERVAL_FIELD, MAX_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 Summary
Constructors Constructor Description HashMapMessage()HashMapMessage(Message message) -
Method Summary
Modifier and Type Method Description Map<String,Object>getAdvice()Map<String,Object>getAdvice(boolean create)StringgetChannel()ChannelIdgetChannelId()StringgetClientId()ObjectgetData()Map<String,Object>getDataAsMap()Map<String,Object>getDataAsMap(boolean create)Map<String,Object>getExt()Map<String,Object>getExt(boolean create)StringgetId()StringgetJSON()booleanisMeta()booleanisPublishReply()booleanisSuccessful()voidsetChannel(String channel)voidsetClientId(String clientId)voidsetData(Object data)voidsetId(String id)voidsetSuccessful(boolean successful)Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Constructor Details
-
HashMapMessage
public HashMapMessage() -
HashMapMessage
-
-
Method Details
-
getAdvice
-
getChannel
- Specified by:
getChannelin interfaceMessage
-
getChannelId
- Specified by:
getChannelIdin interfaceMessage
-
getClientId
- Specified by:
getClientIdin interfaceMessage
-
getData
-
getDataAsMap
- Specified by:
getDataAsMapin interfaceMessage
-
getExt
-
getId
-
getJSON
-
getAdvice
- Specified by:
getAdvicein interfaceMessage.Mutable
-
getDataAsMap
- Specified by:
getDataAsMapin interfaceMessage.Mutable
-
getExt
- Specified by:
getExtin interfaceMessage.Mutable
-
isMeta
public boolean isMeta() -
isPublishReply
public boolean isPublishReply()- Specified by:
isPublishReplyin interfaceMessage
-
isSuccessful
public boolean isSuccessful()- Specified by:
isSuccessfulin interfaceMessage
-
setChannel
- Specified by:
setChannelin interfaceMessage.Mutable
-
setClientId
- Specified by:
setClientIdin interfaceMessage.Mutable
-
setData
- Specified by:
setDatain interfaceMessage.Mutable
-
setId
- Specified by:
setIdin interfaceMessage.Mutable
-
setSuccessful
public void setSuccessful(boolean successful)- Specified by:
setSuccessfulin interfaceMessage.Mutable
-