public class ServerMessageImpl extends HashMapMessage implements ServerMessage.Mutable
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
ServerMessage.Mutable
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 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() |
BayeuxContext |
getBayeuxContext() |
Object |
getData() |
Map<String,Object> |
getDataAsMap() |
Map<String,Object> |
getExt() |
String |
getJSON() |
byte[] |
getJSONBytes() |
ServerTransport |
getServerTransport() |
protected boolean |
isFrozen() |
boolean |
isHandled() |
boolean |
isLazy() |
Object |
put(String key,
Object value) |
void |
setAssociated(ServerMessage.Mutable associated) |
void |
setBayeuxContext(BayeuxContext context) |
void |
setHandled(boolean handled) |
void |
setLazy(boolean lazy) |
void |
setServerTransport(ServerTransport transport) |
getAdvice, getChannel, getChannelId, getClientId, getDataAsMap, getExt, getId, isMeta, isPublishReply, isSuccessful, setChannel, setClientId, setData, setId, setSuccessful
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, get, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
getAdvice, getDataAsMap, getExt, setChannel, setClientId, setData, setId, setSuccessful
getChannel, getChannelId, getClientId, getId, isMeta, isPublishReply, isSuccessful
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public ServerMessage.Mutable getAssociated()
getAssociated
in interface ServerMessage
public void setAssociated(ServerMessage.Mutable associated)
setAssociated
in interface ServerMessage.Mutable
public boolean isLazy()
isLazy
in interface ServerMessage
public boolean isHandled()
public BayeuxContext getBayeuxContext()
getBayeuxContext
in interface ServerMessage
public void setBayeuxContext(BayeuxContext context)
public ServerTransport getServerTransport()
getServerTransport
in interface ServerMessage
public void setServerTransport(ServerTransport transport)
public void setLazy(boolean lazy)
setLazy
in interface ServerMessage.Mutable
public void setHandled(boolean handled)
protected void freeze(String json)
protected boolean isFrozen()
public String getJSON()
public byte[] getJSONBytes()
public Object getData()
getData
in interface org.cometd.bayeux.Message
getData
in class HashMapMessage
public Map<String,Object> getDataAsMap()
getDataAsMap
in interface org.cometd.bayeux.Message
getDataAsMap
in class HashMapMessage
public Map<String,Object> getExt()
getExt
in interface org.cometd.bayeux.Message
getExt
in class HashMapMessage
public Map<String,Object> getAdvice()
getAdvice
in interface org.cometd.bayeux.Message
getAdvice
in class HashMapMessage
Copyright © 2008–2023 The CometD Project. All rights reserved.