|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ie.ncl.msg.Message ie.ncl.msg.TextMessage
public class TextMessage
TextMessage extends the base class Message (used for all messages in the Generic API) by implementing the message body textual (String) data.
Constructor Summary | |
---|---|
TextMessage()
Constructs a blank text message. |
|
TextMessage(Address address,
java.lang.String text)
Construct a new text message. |
|
TextMessage(Message m)
Construct a new text message from an existing base class one. |
|
TextMessage(TextMessage m)
Construct a new text message from an existing one. |
Method Summary | |
---|---|
java.lang.Object |
getBody()
Get the message body. |
java.lang.String |
getText()
Get the text of the message. |
int |
length()
Get the length of the text body. |
void |
setBody(java.lang.Object body)
Set the message body. |
void |
setText(java.lang.String text)
Set the text of the message. |
Methods inherited from class ie.ncl.msg.Message |
---|
getAttribute, getAttributes, getCorrelationID, getDestination, getID, getSource, getType, putAttribute, removeAttribute, setAttributes, setCorrelationID, setDestination, setID, setSource, setType |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextMessage()
public TextMessage(Address address, java.lang.String text)
public TextMessage(TextMessage m)
Message.Message(Message)
,
Attributes.copy()
public TextMessage(Message m)
Message.Message(Message)
,
Attributes.copy()
Method Detail |
---|
public java.lang.String getText()
public void setText(java.lang.String text)
public java.lang.Object getBody()
getBody
in class Message
public void setBody(java.lang.Object body)
setBody
in class Message
public int length()
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |