org.jivesoftware.xiff.data

class Message

Object | +--org.jivesoftware.xiff.data.XMLStanza | +--org.jivesoftware.xiff.data.XMPPStanza | +--org.jivesoftware.xiff.data.Message
Implemented Interfaces: ISerializable

class Message extends XMPPStanza
A class for abstraction and encapsulation of message data.
  • Author:
    Sean Voisen # @since 2.0.0

Field Summary

public static CHAT_TYPE: String
public static ERROR_TYPE: String
public static GROUPCHAT_TYPE: String
public static HEADLINE_TYPE: String
public static NORMAL_TYPE: String
Static variables for specific type strings
Fields inherited from class org.jivesoftware.xiff.data.XMPPStanza
Fields inherited from class org.jivesoftware.xiff.data.XMLStanza

Property Summary

public body: String (read, write)
The message body in plain-text format. If a client cannot render HTML-formatted text, this text is typically used instead.
public htmlBody: String (read, write)
The message body in XHTML format. Internally, this uses the XHTML data extension.
public subject: String (read, write)
The message subject. Typically chat and groupchat-type messages do not use subjects. Rather, this is reserved for normal and headline-type messages.
public thread: String (read, write)
The message thread ID. Threading is used to group messages of the same discussion together. The library does not perform message grouping, rather it is up to any client authors to properly perform this task.
Properties inherited from class org.jivesoftware.xiff.data.XMPPStanza

Constructor

public Message ( recipient: String, msgID: String, msgBody: String, msgHTMLBody: String, msgType: String, msgSubject: String)

Method Summary

public deserialize ( xmlNode: XMLNode ): Boolean
Deserializes an XML object and populates the Message instance with its data.
public static MessageStaticConstructor ( ): Boolean
public serialize ( parentNode: XMLNode ): Boolean
Serializes the Message into XML form for sending to a server.
Methods inherited from class org.jivesoftware.xiff.data.XMLStanza

Field Documentation

CHAT_TYPE

public static var CHAT_TYPE: String

    ERROR_TYPE

    public static var ERROR_TYPE: String

      GROUPCHAT_TYPE

      public static var GROUPCHAT_TYPE: String

        HEADLINE_TYPE

        public static var HEADLINE_TYPE: String

          Property Documentation


          Constructor Documentation

          Message

          public function Message (
          recipient: String,
          msgID: String,
          msgBody: String,
          msgHTMLBody: String,
          msgType: String,
          msgSubject: String)

            Method Documentation

            The documentation was generated from the following file:
            • Message.as, Last Modified: 3/10/2005 10:15:44 PM