public class MessageImpl extends HashMap<String,Object> implements TransportMessage.TransportMutable
Message
implementation.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
TransportMessage.TransportMutable
AUTH_SUCCESSFUL_FIELD
ADVICE_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 |
---|
MessageImpl() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getAdvice() |
Map<String,Object> |
getAdvice(boolean create) |
org.cometd.bayeux.server.ServerMessage.Mutable |
getAssociated() |
String |
getChannel() |
org.cometd.bayeux.ChannelId |
getChannelId() |
String |
getClientId() |
String[] |
getConnectionType()
Obtains the
Message.CONNECTION_TYPE_FIELD . |
Object |
getData() |
Map<String,Object> |
getDataAsMap() |
Map<String,Object> |
getDataAsMap(boolean create) |
String |
getError()
Obtains the
Message.ERROR_FIELD . |
Map<String,Object> |
getExt() |
Map<String,Object> |
getExt(boolean create) |
String |
getId() |
String |
getJSON() |
String |
getSubscription()
Obtains the
Message.SUBSCRIPTION_FIELD . |
String[] |
getSupportedConnectionTypes()
Obtains the
Message.SUPPORTED_CONNECTION_TYPES_FIELD . |
String |
getVersion()
Obtains the
Message.VERSION_FIELD . |
Boolean |
isAuthSuccessful()
Obtains the
TransportMessage.AUTH_SUCCESSFUL_FIELD . |
boolean |
isLazy() |
boolean |
isMeta() |
boolean |
isPublishReply() |
boolean |
isSuccessful() |
void |
setAssociated(org.cometd.bayeux.server.ServerMessage.Mutable message) |
void |
setChannel(String channel) |
void |
setClientId(String clientId) |
void |
setConnectionType(String connectionType)
Specifies the
Message.CONNECTION_TYPE_FIELD . |
void |
setData(Object data) |
void |
setId(String id) |
void |
setLazy(boolean lazy) |
void |
setSubscription(String subscription)
Specifies the
Message.SUBSCRIPTION_FIELD . |
void |
setSuccessful(boolean successful) |
void |
setSupportedConnectionTypes(String... supportedConnectionTypes)
Specifies the
Message.SUPPORTED_CONNECTION_TYPES_FIELD . |
void |
setVersion(String version)
Specifies the
Message.VERSION_FIELD . |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
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
public org.cometd.bayeux.server.ServerMessage.Mutable getAssociated()
getAssociated
in interface org.cometd.bayeux.server.ServerMessage
public boolean isLazy()
isLazy
in interface org.cometd.bayeux.server.ServerMessage
public Map<String,Object> getAdvice()
getAdvice
in interface org.cometd.bayeux.Message
public String getChannel()
getChannel
in interface org.cometd.bayeux.Message
public org.cometd.bayeux.ChannelId getChannelId()
getChannelId
in interface org.cometd.bayeux.Message
public String getClientId()
getClientId
in interface org.cometd.bayeux.Message
public Object getData()
getData
in interface org.cometd.bayeux.Message
public boolean isMeta()
isMeta
in interface org.cometd.bayeux.Message
public boolean isPublishReply()
isPublishReply
in interface org.cometd.bayeux.Message
public boolean isSuccessful()
isSuccessful
in interface org.cometd.bayeux.Message
public Map<String,Object> getDataAsMap()
getDataAsMap
in interface org.cometd.bayeux.Message
public Map<String,Object> getExt()
getExt
in interface org.cometd.bayeux.Message
public String getId()
getId
in interface org.cometd.bayeux.Message
public String getJSON()
getJSON
in interface org.cometd.bayeux.Message
public Map<String,Object> getAdvice(boolean create)
getAdvice
in interface org.cometd.bayeux.Message.Mutable
public Map<String,Object> getDataAsMap(boolean create)
getDataAsMap
in interface org.cometd.bayeux.Message.Mutable
public Map<String,Object> getExt(boolean create)
getExt
in interface org.cometd.bayeux.Message.Mutable
public void setChannel(String channel)
setChannel
in interface org.cometd.bayeux.Message.Mutable
public void setClientId(String clientId)
setClientId
in interface org.cometd.bayeux.Message.Mutable
public void setData(Object data)
setData
in interface org.cometd.bayeux.Message.Mutable
public void setId(String id)
setId
in interface org.cometd.bayeux.Message.Mutable
public void setSuccessful(boolean successful)
setSuccessful
in interface org.cometd.bayeux.Message.Mutable
public void setAssociated(org.cometd.bayeux.server.ServerMessage.Mutable message)
setAssociated
in interface org.cometd.bayeux.server.ServerMessage.Mutable
public void setLazy(boolean lazy)
setLazy
in interface org.cometd.bayeux.server.ServerMessage.Mutable
public String getVersion()
TransportMessage
Message.VERSION_FIELD
.getVersion
in interface TransportMessage
public String[] getSupportedConnectionTypes()
TransportMessage
Message.SUPPORTED_CONNECTION_TYPES_FIELD
.getSupportedConnectionTypes
in interface TransportMessage
public String[] getConnectionType()
TransportMessage
Message.CONNECTION_TYPE_FIELD
.getConnectionType
in interface TransportMessage
public Boolean isAuthSuccessful()
TransportMessage
TransportMessage.AUTH_SUCCESSFUL_FIELD
.isAuthSuccessful
in interface TransportMessage
public String getSubscription()
TransportMessage
Message.SUBSCRIPTION_FIELD
.getSubscription
in interface TransportMessage
public String getError()
TransportMessage
Message.ERROR_FIELD
.getError
in interface TransportMessage
public void setVersion(String version)
TransportMessage.TransportMutable
Message.VERSION_FIELD
.setVersion
in interface TransportMessage.TransportMutable
version
- Version.public void setSupportedConnectionTypes(String... supportedConnectionTypes)
TransportMessage.TransportMutable
Message.SUPPORTED_CONNECTION_TYPES_FIELD
.setSupportedConnectionTypes
in interface TransportMessage.TransportMutable
supportedConnectionTypes
- Supported connection types.public void setConnectionType(String connectionType)
TransportMessage.TransportMutable
Message.CONNECTION_TYPE_FIELD
.setConnectionType
in interface TransportMessage.TransportMutable
connectionType
- Connection type.public void setSubscription(String subscription)
TransportMessage.TransportMutable
Message.SUBSCRIPTION_FIELD
.setSubscription
in interface TransportMessage.TransportMutable
subscription
- Subscription.Copyright © 2005–2016. All rights reserved.