public class Message extends Stanza
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.
|
addFlag, canBeConverted, create, createIQ, createMessage, createPresence, getErrorCondition, getErrorMessage, getFrom, getId, getTo, getType, hasFlag, removeFlag, setFrom, setId, setTo, setType
getXmppStream, setXmppStream
addChild, 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, setXMLNS, toString
protected Message(Element element) throws XMLException
XMLException
public static final Message create() throws JaxmppException
JaxmppException
public String getBody() throws XMLException
XMLException
public void setBody(String body) throws XMLException
body
- body of messageXMLException
public String getSubject() throws XMLException
XMLException
public void setSubject(String subject) throws XMLException
subject
- subject of messageXMLException
public String getThread() throws XMLException
XMLException
public void setThread(String thread) throws XMLException
thread
- thread-idXMLException
public StanzaType getType() throws XMLException
getType
in class Stanza
null
if type not present.XMLException
Copyright © 2006–2023 Tigase. All rights reserved.