|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | 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
Fields inherited from class org.media.mn8.protocol.jabber.JabberDataBlock |
attributes, childBlocks, parent, textData |
Constructor Summary | |
Message()
Default Constructor. |
|
Message(JabberDataBlock _parent,
java.util.Hashtable _attributes)
Constructor for incomming messages |
|
Message(java.lang.String to)
Constructor. |
|
Message(java.lang.String to,
java.lang.String message)
Constructor. |
Method Summary | |
Message |
constructReply()
Construct a reply message |
java.lang.String |
getBody()
Method to get the message body |
java.lang.String |
getSubject()
Method to get the message subject |
java.lang.String |
getTagName()
Get the tag start marker |
void |
setBodyText(java.lang.String text)
Method to set the body text. |
void |
setHTMLBodyText(java.lang.String html)
Method to set the body text written in HTML. |
void |
setSubject(java.lang.String text)
Method to set the subject text. |
void |
setThread(java.lang.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(java.lang.String to, java.lang.String message)
to
- The destination of the messagemessage
- The message textpublic Message(java.lang.String to)
to
- The destination of the messagepublic Message()
public Message(JabberDataBlock _parent, java.util.Hashtable _attributes)
_parent
- The parent of this datablock_attributes
- The list of element attributesMethod Detail |
public void setBodyText(java.lang.String text)
bodyText
- The string to go in the message bodypublic void setHTMLBodyText(java.lang.String html)
html
- The html to go in the message bodypublic void setThread(java.lang.String text)
threadName
- The string to go in the thread blockpublic void setSubject(java.lang.String text)
text
- The string to go in the message subjectpublic java.lang.String getSubject()
public java.lang.String getBody()
public Message constructReply()
public java.lang.String getTagName()
getTagName
in class JabberDataBlock
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |