public final class Message extends AbstractMessage implements ClientStreamElement
<message/> element for the client namespace ('jabber:client').AbstractMessage.Body, AbstractMessage.Subject, AbstractMessage.Type| Constructor and Description |
|---|
Message(Jid to)
Constructs an empty message.
|
Message(Jid to,
AbstractMessage.Type type)
Constructs a message with a type.
|
Message(Jid to,
AbstractMessage.Type type,
String body)
Constructs a message with body and type.
|
| Modifier and Type | Method and Description |
|---|---|
Message |
createError(StanzaError error)
Creates an error response for this stanza.
|
getBodies, getBody, getExtension, getExtensions, getParentThread, getSubject, getSubjects, getThread, getType, setBody, setParentThread, setSubject, setThread, setType, toStringcreateError, getError, getFrom, getId, getLanguage, getTo, setError, setFrom, setId, setLanguage, setTopublic Message(Jid to)
to - The recipient.public Message(Jid to, AbstractMessage.Type type)
to - The recipient.type - The message type.public Message(Jid to, AbstractMessage.Type type, String body)
to - The recipient.body - The message body.type - The message type.public Message createError(StanzaError error)
StanzacreateError in class Stanzaerror - The error which is appended to the stanza.Stanza.getError(),
Stanza.createError(Stanza, StanzaError)Copyright © 2014 XMPP.rocks. All rights reserved.