org.cometd.server
Class ServerMessageImpl
java.lang.Object
java.util.AbstractMap<java.lang.String,java.lang.Object>
org.cometd.server.ServerMessageImpl
- All Implemented Interfaces:
- java.util.Map<java.lang.String,java.lang.Object>, Message, ServerMessage, org.eclipse.jetty.util.ajax.JSON.Generator
public class ServerMessageImpl
- extends java.util.AbstractMap<java.lang.String,java.lang.Object>
- implements ServerMessage, org.eclipse.jetty.util.ajax.JSON.Generator
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.AbstractMap |
clear, clone, equals, hashCode, isEmpty, keySet, put, putAll, remove, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
clear, equals, hashCode, isEmpty, keySet, put, putAll, remove, values |
ServerMessageImpl
public ServerMessageImpl()
ServerMessageImpl
public ServerMessageImpl(ServerMessagePool bayeux)
asMutable
public ServerMessage.Mutable asMutable()
- Specified by:
asMutable
in interface ServerMessage
addJSON
public void addJSON(java.lang.StringBuffer buffer)
- Specified by:
addJSON
in interface org.eclipse.jetty.util.ajax.JSON.Generator
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey
in interface java.util.Map<java.lang.String,java.lang.Object>
- Overrides:
containsKey
in class java.util.AbstractMap<java.lang.String,java.lang.Object>
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValue
in interface java.util.Map<java.lang.String,java.lang.Object>
- Overrides:
containsValue
in class java.util.AbstractMap<java.lang.String,java.lang.Object>
decRef
public void decRef()
- Specified by:
decRef
in interface ServerMessage
entrySet
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> entrySet()
- Specified by:
entrySet
in interface java.util.Map<java.lang.String,java.lang.Object>
- Specified by:
entrySet
in class java.util.AbstractMap<java.lang.String,java.lang.Object>
get
public java.lang.Object get(java.lang.Object key)
- Specified by:
get
in interface java.util.Map<java.lang.String,java.lang.Object>
- Overrides:
get
in class java.util.AbstractMap<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 ServerMessage getAssociated()
- Specified by:
getAssociated
in interface ServerMessage
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
getRefs
public int getRefs()
incRef
public void incRef()
- Specified by:
incRef
in interface ServerMessage
isLazy
public boolean isLazy()
- Lazy messages are queued but do not wake up waiting clients.
- Specified by:
isLazy
in interface ServerMessage
- Returns:
- true if message is lazy
isMeta
public boolean isMeta()
- Specified by:
isMeta
in interface Message
isSuccessful
public boolean isSuccessful()
- Specified by:
isSuccessful
in interface Message
setAssociated
public void setAssociated(ServerMessage associated)
setData
public void setData(java.lang.Object data)
setLazy
public void setLazy(boolean lazy)
- Lazy messages are queued but do not wake up waiting clients.
- Parameters:
lazy
- true if message is lazy
size
public int size()
- Specified by:
size
in interface java.util.Map<java.lang.String,java.lang.Object>
- Overrides:
size
in class java.util.AbstractMap<java.lang.String,java.lang.Object>
toString
public java.lang.String toString()
- Overrides:
toString
in class java.util.AbstractMap<java.lang.String,java.lang.Object>
Copyright © 2010 Dojo Foundation. All Rights Reserved.