Stanza.UnkownStanzaTypeException| Modifier | Constructor and Description |
|---|---|
protected |
Message(Element element) |
| Modifier and Type | Method and Description |
|---|---|
static Message |
create() |
String |
getBody()
Return message body.
|
String |
getSubject()
Returns subject of message.
|
String |
getThread()
Returns thread-id.
|
StanzaType |
getType()
Returns type of stanza.
|
void |
setBody(String body)
Sets body of message.
|
void |
setSubject(String subject)
Sets subject of message.
|
void |
setThread(String thread)
Sets thread-id of message.
|
canBeConverted, create, createIQ, createMessage, createPresence, getErrorCondition, getFrom, getId, getTo, getType, setFrom, setId, setTo, setTypegetXmppStream, setXmppStreamaddChild, equals, findChild, getAsString, getAttribute, getAttributes, getChildAfter, getChildElementValue, getChildElementValue, getChildren, getChildren, getChildrenNS, getChildrenNS, getFirstChild, getFirstChild, getName, getNextSibling, getParent, getValue, getWrappedElement, getXMLNS, hashCode, removeAttribute, removeChild, setAttribute, setAttributes, setChildElementValue, setChildElementValue, setParent, setValue, setXMLNSprotected Message(Element element) throws XMLException
XMLExceptionpublic static final Message create() throws JaxmppException
JaxmppExceptionpublic String getBody() throws XMLException
XMLExceptionpublic String getSubject() throws XMLException
XMLExceptionpublic String getThread() throws XMLException
XMLExceptionpublic StanzaType getType() throws XMLException
getType in class Stanzanull if type not present.XMLExceptionpublic void setBody(String body) throws XMLException
body - body of messageXMLExceptionpublic void setSubject(String subject) throws XMLException
subject - subject of messageXMLExceptionpublic void setThread(String thread) throws XMLException
thread - thread-idXMLExceptionCopyright © 2006–2016 Tigase. All rights reserved.