public class Message
extends java.lang.Object
| Constructor and Description |
|---|
Message()
Initializes an instance of the
Message class |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBody()
Gets the body
|
java.lang.String |
getFrom()
Gets the from
|
java.lang.String |
getTo()
Gets the to
|
java.lang.Boolean |
getValid()
Gets the valid
|
void |
setBody(byte[] body)
Sets the body
|
void |
setFrom(java.lang.String from)
Sets the from
|
void |
setTo(java.lang.String to)
Sets the to
|
void |
setValid(java.lang.Boolean valid)
Sets the valid
|
public Message()
Message classpublic java.lang.Boolean getValid()
public void setValid(java.lang.Boolean valid)
valid - A Boolean value indicating whether this is valid.public java.lang.String getFrom()
public void setFrom(java.lang.String from)
from - A String value indicating where is this message from.public java.lang.String getTo()
public void setTo(java.lang.String to)
to - A String value indicating this message is to whom.public byte[] getBody()
public void setBody(byte[] body)
body - the message body