public class Message
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Message(byte[] body,
MessageProperties messageProperties) |
Modifier and Type | Method and Description |
---|---|
static void |
addWhiteListPatterns(java.lang.String... patterns)
Add patterns to the white list of permissable package/class name patterns for
deserialization in
toString() . |
boolean |
equals(java.lang.Object obj) |
byte[] |
getBody() |
MessageProperties |
getMessageProperties() |
int |
hashCode() |
java.lang.String |
toString() |
public Message(byte[] body, MessageProperties messageProperties)
public static void addWhiteListPatterns(java.lang.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()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object