public class Message
extends Object
implements Cloneable, Serializable
Constructor and Description |
---|
Message() |
Modifier and Type | Method and Description |
---|---|
Message |
clone() |
boolean |
contains(String key) |
void |
copyFrom(Message message) |
void |
copyTo(Message message) |
static Message |
fromByteArray(byte[] bytes) |
Object |
get(String key) |
boolean |
getBoolean(String key) |
String |
getDestinationName() |
double |
getDouble(String key) |
int |
getInteger(String key) |
long |
getLong(String key) |
Object |
getPayload() |
Object |
getResponse() |
String |
getResponseDestinationName() |
String |
getResponseId() |
String |
getString(String key) |
Map<String,Object> |
getValues() |
void |
put(String key,
Object value) |
void |
remove(String key) |
void |
setDestinationName(String destinationName) |
void |
setPayload(Object payload) |
void |
setResponse(Object response) |
void |
setResponseDestinationName(String responseDestinationName) |
void |
setResponseId(String responseId) |
void |
setValues(Map<String,Object> values) |
byte[] |
toByteArray() |
String |
toString() |
public static Message fromByteArray(byte[] bytes) throws ClassNotFoundException
ClassNotFoundException
public Message clone()
clone
in class Object
public boolean contains(String key)
public void copyFrom(Message message)
public void copyTo(Message message)
public Object get(String key)
public boolean getBoolean(String key)
public String getDestinationName()
public double getDouble(String key)
public int getInteger(String key)
public long getLong(String key)
public Object getPayload()
public Object getResponse()
public String getResponseDestinationName()
public String getResponseId()
public String getString(String key)
public Map<String,Object> getValues()
public void put(String key, Object value)
public void remove(String key)
public void setDestinationName(String destinationName)
public void setPayload(Object payload)
public void setResponse(Object response)
public void setResponseDestinationName(String responseDestinationName)
public void setResponseId(String responseId)
public void setValues(Map<String,Object> values)
public byte[] toByteArray()
public String toString()
toString
in class Object