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, getErrorMessage, 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 void setBody(String body) throws XMLException
body - body of messageXMLExceptionpublic String getSubject() throws XMLException
XMLExceptionpublic void setSubject(String subject) throws XMLException
subject - subject of messageXMLExceptionpublic String getThread() throws XMLException
XMLExceptionpublic void setThread(String thread) throws XMLException
thread - thread-idXMLExceptionpublic StanzaType getType() throws XMLException
getType in class Stanzanull if type not present.XMLExceptionCopyright © 2006–2018 Tigase. All rights reserved.