|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jabber.jabberbeans.XMLData | +--org.jabber.jabberbeans.ContentPacket | +--org.jabber.jabberbeans.Message
This is the data type that holds the data of a message. from the jabber documentation page here we get the message format (sorry, not in DTD format):
<message to="*" from="*" id="*" type="error|normal|chat|groupchat">
The following metadata
<subject>subject text</subject>
<thread>thread id</thread>
and the following content types:
<body>main text of message</body>
<ext xmlns="jabber:x:*"></ext>
</message>
Field Summary | |
private java.lang.String |
body
Body string |
private java.lang.String |
subject
Subject string |
private java.lang.String |
thread
Thread string |
Fields inherited from class org.jabber.jabberbeans.ContentPacket |
errorCode,
errorText,
extensions,
fromAddress,
identifier,
toAddress,
type |
Constructor Summary | |
Message(MessageBuilder builder)
Builds a message, based on the data in the MessageBuilder. |
Method Summary | |
void |
appendItem(java.lang.StringBuffer retval)
appendItem appends the XML representation of the
current packet data to the specified StringBuffer . |
java.lang.String |
getBody()
getBody returns the text within the body element, if
any |
java.lang.String |
getSubject()
getSubject returns the text within the subject element, if
any |
java.lang.String |
getThread()
getThread returns the text within the thread element, if
any |
Methods inherited from class org.jabber.jabberbeans.ContentPacket |
appendAnyError,
appendBaseAttribs,
Extensions,
getErrorCode,
getErrorText,
getFromAddress,
getIdentifier,
getToAddress,
getType |
Methods inherited from class org.jabber.jabberbeans.XMLData |
appendAttrib,
appendAttrib,
appendChild,
appendChild,
escapeString,
toString |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.lang.String subject
private java.lang.String thread
private java.lang.String body
Constructor Detail |
public Message(MessageBuilder builder) throws java.lang.InstantiationException
builder
- 'MessageBuilder' to feed in.Method Detail |
public final java.lang.String getSubject()
getSubject
returns the text within the subject element, if
anyString
value, or null if no subjectpublic final java.lang.String getThread()
getThread
returns the text within the thread element, if
anyString
value, or null if no threadpublic final java.lang.String getBody()
getBody
returns the text within the body element, if
anyString
value, or null if no bodypublic final void appendItem(java.lang.StringBuffer retval)
appendItem
appends the XML representation of the
current packet data to the specified StringBuffer
.retval
- The StringBuffer
to append to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |