public class Message extends Object implements Serializable
Constructor and Description |
---|
Message(byte[] body,
MessageProperties messageProperties) |
Modifier and Type | Method and Description |
---|---|
static void |
addWhiteListPatterns(String... patterns)
Add patterns to the white list of permissable package/class name patterns for
deserialization in
toString() . |
boolean |
equals(Object obj) |
byte[] |
getBody() |
MessageProperties |
getMessageProperties() |
int |
hashCode() |
String |
toString() |
public Message(byte[] body, MessageProperties messageProperties)
public static void addWhiteListPatterns(String... patterns)
toString()
.
The patterns will be applied in order until a match is found.
A class can be fully qualified or a wildcard '*' is allowed at the
beginning or end of the class name.
Examples: com.foo.*
, *.MyClass
.
By default, only java.util
and java.lang
classes will be
deserialized.patterns
- the patterns.public byte[] getBody()
public MessageProperties getMessageProperties()