Packageorg.igniterealtime.xiff.data.xhtml
Classpublic class XHTMLExtension
InheritanceXHTMLExtension Inheritance Extension Inheritance XMLStanza Inheritance ExtensionContainer
ImplementsIExtension

This class provides an extension for XHTML body text in messages.

html --> http://jabber.org/protocol/xhtml-im

body --> http://www.w3.org/1999/xhtml

See also

http://xmpp.org/extensions/xep-0071.html


Public Properties
 PropertyDefined by
  body : String
The XHTML body text.
XHTMLExtension
 Inherited_exts : Object
ExtensionContainer
 InheritedXMLData : XML
[static]
XMLStanza
 InheritedXMLFactory : XMLDocument
[static]
XMLStanza
Public Methods
 MethodDefined by
  
XHTMLExtension(parent:XMLNode = null)
XHTMLExtension
 Inherited
ExtensionContainer
 Inherited
addTextNode(parent:XMLNode, elementName:String, value:String):XMLNode
Adds a simple text node to the parent node specified.
XMLStanza
  
deserialize(node:XMLNode):Boolean
XHTMLExtension
  
enable():void
[static] Performs the registration of this extension into the extension registry.
XHTMLExtension
 Inherited
ensureNode(node:XMLNode, elementName:String):XMLNode
Ensures that a node with a specific element name exists in the stanza.
XMLStanza
 Inherited
exists(value:*):Boolean
[static] A helper method to determine if a value is both not null and not undefined.
XMLStanza
 Inherited
ExtensionContainer
 Inherited
getAllExtensionsByNS(ns:String):Array
ExtensionContainer
  
getElementName():String
Gets the element name associated with this extension.
XHTMLExtension
 Inherited
getExtension(name:String):Extension
ExtensionContainer
 Inherited
getNode():XMLNode
XMLStanza
  
getNS():String
Gets the namespace associated with this extension.
XHTMLExtension
 Inherited
remove():void
Removes the extension from its parent.
Extension
 Inherited
removeAllExtensions(ns:String):void
ExtensionContainer
 Inherited
ExtensionContainer
 Inherited
replaceTextNode(parent:XMLNode, original:XMLNode, elementName:String, value:String):XMLNode
Replaces one node in the stanza with another simple text node.
XMLStanza
  
serialize(parent:XMLNode):Boolean
XHTMLExtension
 Inherited
setNode(node:XMLNode):Boolean
Sets the XML node that should be used for this stanza's internal XML representation.
XMLStanza
 Inherited
toString():String
Converts the extension stanza XML to a string.
Extension
Public Constants
 ConstantDefined by
  ELEMENT_NAME : String = "html"
[static]
XHTMLExtension
  NS : String = "http://jabber.org/protocol/xhtml-im"
[static]
XHTMLExtension
Property detail
bodyproperty
body:String  [read-write]

The XHTML body text. Valid XHTML is REQUIRED. Because XMPP operates using valid XML, standard HTML, which is not necessarily XML-parser compliant, will not work.

Implementation
    public function get body():String
    public function set body(value:String):void
Constructor detail
XHTMLExtension()constructor
public function XHTMLExtension(parent:XMLNode = null)

Parameters
parent:XMLNode (default = null) — The parent node for this extension
Method detail
deserialize()method
public function deserialize(node:XMLNode):Boolean

Parameters
node:XMLNode — The parent node for this extension

Returns
Boolean

See also

enable()method 
public static function enable():void

Performs the registration of this extension into the extension registry.

getElementName()method 
public function getElementName():String

Gets the element name associated with this extension. The element for this extension is "html".

Returns
String — The element name
getNS()method 
public function getNS():String

Gets the namespace associated with this extension. The namespace for the XHTMLExtension is "http://www.w3.org/1999/xhtml".

Returns
String — The namespace
serialize()method 
public function serialize(parent:XMLNode):Boolean

Parameters
parent:XMLNode — The parent node for this extension

Returns
Boolean
Constant detail
ELEMENT_NAMEconstant
public static const ELEMENT_NAME:String = "html"
NSconstant 
public static const NS:String = "http://jabber.org/protocol/xhtml-im"