Package org.cometd.server
Class ServerMessageImpl
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,Object>
org.cometd.common.HashMapMessage
org.cometd.server.ServerMessageImpl
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,,Object> org.cometd.bayeux.Message,org.cometd.bayeux.Message.Mutable,ServerMessage,ServerMessage.Mutable
- See Also:
-
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> Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K extends Object,V extends Object> Nested classes/interfaces inherited from interface org.cometd.bayeux.Message
org.cometd.bayeux.Message.MutableNested classes/interfaces inherited from interface org.cometd.bayeux.server.ServerMessage
ServerMessage.Mutable -
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 -
Method Summary
Modifier and TypeMethodDescriptionentrySet()protected voidgetData()getExt()getJSON()byte[]protected booleanisFrozen()booleanbooleanisLazy()voidsetAssociated(ServerMessage.Mutable associated) voidsetBayeuxContext(BayeuxContext context) voidsetHandled(boolean handled) voidsetLazy(boolean lazy) voidsetServerTransport(ServerTransport transport) Methods inherited from class org.cometd.common.HashMapMessage
getAdvice, getChannel, getChannelId, getClientId, getDataAsMap, getExt, getId, isMeta, isPublishReply, isSuccessful, setChannel, setClientId, setData, setId, setSuccessfulMethods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, get, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toStringMethods 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, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from interface org.cometd.bayeux.Message
getChannel, getChannelId, getClientId, getId, isMeta, isPublishReply, isSuccessfulMethods inherited from interface org.cometd.bayeux.Message.Mutable
getAdvice, getDataAsMap, getExt, setChannel, setClientId, setData, setId, setSuccessful
-
Constructor Details
-
ServerMessageImpl
public ServerMessageImpl()
-
-
Method Details
-
getAssociated
- Specified by:
getAssociatedin interfaceServerMessage
-
setAssociated
- Specified by:
setAssociatedin interfaceServerMessage.Mutable
-
isLazy
public boolean isLazy()- Specified by:
isLazyin interfaceServerMessage
-
isHandled
public boolean isHandled() -
getBayeuxContext
- Specified by:
getBayeuxContextin interfaceServerMessage
-
setBayeuxContext
-
getServerTransport
- Specified by:
getServerTransportin interfaceServerMessage
-
setServerTransport
-
setLazy
public void setLazy(boolean lazy) - Specified by:
setLazyin interfaceServerMessage.Mutable
-
setHandled
public void setHandled(boolean handled) -
freeze
-
isFrozen
protected boolean isFrozen() -
getJSON
-
getJSONBytes
public byte[] getJSONBytes() -
getData
- Specified by:
getDatain interfaceorg.cometd.bayeux.Message- Overrides:
getDatain classHashMapMessage
-
put
-
entrySet
-
getDataAsMap
- Specified by:
getDataAsMapin interfaceorg.cometd.bayeux.Message- Overrides:
getDataAsMapin classHashMapMessage
-
getExt
- Specified by:
getExtin interfaceorg.cometd.bayeux.Message- Overrides:
getExtin classHashMapMessage
-
getAdvice
- Specified by:
getAdvicein interfaceorg.cometd.bayeux.Message- Overrides:
getAdvicein classHashMapMessage
-