|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.media.mn8.protocol.jabber.JabberDataBlock | +--org.media.mn8.protocol.jabber.datablocks.Message
The class representing a Jabber message object
Field Summary |
Fields inherited from class org.media.mn8.protocol.jabber.JabberDataBlock |
attributes, childBlocks, parent, textData |
Constructor Summary | |
Message()
Default Constructor. |
|
Message(JabberDataBlock _parent,
Hashtable _attributes)
Constructor for incomming messages |
|
Message(String to)
Constructor. |
|
Message(String to,
String message)
Constructor. |
Method Summary | |
Message |
constructReply()
Construct a reply message |
String |
getBody()
Method to get the message body |
String |
getSubject()
Method to get the message subject |
String |
getTagName()
Get the tag start marker |
void |
setBodyText(String text)
Method to set the body text. |
void |
setHTMLBodyText(String html)
Method to set the body text written in HTML. |
void |
setSubject(String text)
Method to set the subject text. |
void |
setThread(String text)
Method to set the message thread. |
Methods inherited from class org.media.mn8.protocol.jabber.JabberDataBlock |
addAttributeToStringBuffer, addChild, addText, constructReply, getAttribute, getBytes, getChildBlocks, getParent, getTagEnd, getTagStart, getText, setAttribute, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Message(String to, String message)
to
- The destination of the messagemessage
- The message textpublic Message(String to)
to
- The destination of the messagepublic Message()
public Message(JabberDataBlock _parent, Hashtable _attributes)
_parent
- The parent of this datablock_attributes
- The list of element attributesMethod Detail |
public void setBodyText(String text)
public void setHTMLBodyText(String html)
html
- The html to go in the message bodypublic void setThread(String text)
public void setSubject(String text)
text
- The string to go in the message subjectpublic String getSubject()
public String getBody()
public Message constructReply()
public String getTagName()
getTagName
in class JabberDataBlock
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |