public interface MessageView extends StanzaView
| Modifier and Type | Method and Description |
|---|---|
default java.util.Set<Message.Body> |
getBodies()
Returns a set of all bodies in this Message, including the default message body accessible
from
getBody(). |
default java.lang.String |
getBody()
Returns the default body of the message, or null if the body has not been set.
|
default java.lang.String |
getBody(java.lang.String language)
Returns the body corresponding to the language.
|
default java.util.List<java.lang.String> |
getBodyLanguages()
Returns all the languages being used for the bodies, not including the default body.
|
default Message.Body |
getMessageBody(java.lang.String language) |
default Message.Subject |
getMessageSubject(java.lang.String language) |
default java.lang.String |
getSubject()
Returns the default subject of the message, or null if the subject has not been set.
|
default java.lang.String |
getSubject(java.lang.String language)
Returns the subject corresponding to the language.
|
default java.util.List<java.lang.String> |
getSubjectLanguages()
Returns all the languages being used for the subjects, not including the default subject.
|
default java.util.Set<Message.Subject> |
getSubjects()
Returns a set of all subjects in this Message, including the default message subject accessible
from
getSubject(). |
default java.lang.String |
getThread()
Returns the thread id of the message, which is a unique identifier for a sequence
of "chat" messages.
|
Message.Type |
getType()
Returns the type of the message.
|
getError, getExtension, getExtension, getExtensions, getExtensions, getExtensions, getFrom, getStanzaId, getTo, hasExtension, hasExtension, hasExtensiongetLanguageMessage.Type getType()
Message.Type.normal.default java.lang.String getSubject()
The default subject of a message is the subject that corresponds to the message's language.
(see XmlLangElement.getLanguage()) or if no language is set to the applications default
language (see Stanza.getDefaultLanguage()).
default java.lang.String getSubject(java.lang.String language)
getSubject(). Null will be returned if the language does not have
a corresponding subject.language - the language of the subject to return.default Message.Subject getMessageSubject(java.lang.String language)
default java.util.Set<Message.Subject> getSubjects()
getSubject().default java.util.List<java.lang.String> getSubjectLanguages()
default java.lang.String getBody()
The default body of a message is the body that corresponds to the message's language.
(see XmlLangElement.getLanguage()) or if no language is set to the applications default
language (see Stanza.getDefaultLanguage()).
default java.lang.String getBody(java.lang.String language)
getBody(). Null will be returned if the language does not have
a corresponding body.language - the language of the body to return.default Message.Body getMessageBody(java.lang.String language)
default java.util.Set<Message.Body> getBodies()
getBody().default java.util.List<java.lang.String> getBodyLanguages()
default java.lang.String getThread()
null will be returned.null if it doesn't exist.