Packageorg.igniterealtime.xiff.data.disco
Classpublic class InfoDiscoExtension
InheritanceInfoDiscoExtension Inheritance DiscoExtension Inheritance Extension Inheritance XMLStanza Inheritance ExtensionContainer
ImplementsIExtension

Implements XEP-0030 for service info discovery. Also, take a look at XEP-0020 and XEP-0060.

See also

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


Public Properties
 PropertyDefined by
 Inherited_exts : Object
ExtensionContainer
  features : Array
[read-only] An array of namespaces this service supports for feature negotiation.
InfoDiscoExtension
  identities : Array
[read-only] An array of objects that represent the identities of a resource discovered.
InfoDiscoExtension
 Inherited_service : EscapedJID
DiscoExtension
 Inheritedservice : EscapedJID
The service name of the discovery procedure
DiscoExtension
 InheritedserviceNode : String
DiscoExtension
 InheritedXMLData : XML
[static]
XMLStanza
 InheritedXMLFactory : XMLDocument
[static]
XMLStanza
Public Methods
 MethodDefined by
  
InfoDiscoExtension(xmlNode:XMLNode = null)
InfoDiscoExtension
 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
InfoDiscoExtension
  
enable():void
[static] Performs the registration of this extension into the extension registry.
InfoDiscoExtension
 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
InfoDiscoExtension
 Inherited
getExtension(name:String):Extension
ExtensionContainer
 Inherited
getNode():XMLNode
XMLStanza
  
getNS():String
InfoDiscoExtension
 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
 Inherited
serialize(parentNode:XMLNode):Boolean
DiscoExtension
 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
 InheritedELEMENT_NAME : String = "query"
[static]
DiscoExtension
  NS : String = "http://jabber.org/protocol/disco#info"
[static]
InfoDiscoExtension
Property detail
featuresproperty
features:Array  [read-only]

An array of namespaces this service supports for feature negotiation.

Implementation
    public function get features():Array
identitiesproperty 
identities:Array  [read-only]

An array of objects that represent the identities of a resource discovered. For more information on categories, see http://www.jabber.org/registrar/disco-categories.html The objects in the array have the following possible attributes:

Implementation
    public function get identities():Array
Constructor detail
InfoDiscoExtension()constructor
public function InfoDiscoExtension(xmlNode:XMLNode = null)

Parameters
xmlNode:XMLNode (default = null) — (Optional) The XMLNode that contains this extension

See also

Method detail
deserialize()method
public override function deserialize(node:XMLNode):BooleanParameters
node:XMLNode

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

Performs the registration of this extension into the extension registry.

getElementName()method 
public function getElementName():String

Returns
String
getNS()method 
public function getNS():String

Returns
String
Constant detail
NSconstant
public static const NS:String = "http://jabber.org/protocol/disco#info"