Packageorg.igniterealtime.xiff.data.bind
Classpublic class BindExtension
InheritanceBindExtension Inheritance Extension Inheritance XMLStanza Inheritance ExtensionContainer Inheritance Object
Implements IExtension

Resource Binding as defined in RFC 6120: Section 7.

After a client authenticates with a server, it MUST bind a specific resource to the stream so that the server can properly address the client.

That is, there MUST be an XMPP resource associated with the bare JID (localpart@domainpart) of the client, so that the address for use over that stream is a full JID of the form localpart@domainpart/resource (including the resourcepart). This ensures that the server can deliver XML stanzas to and receive XML stanzas from the client in relation to entities other than the server itself or the client's account.

See also

http://tools.ietf.org/html/rfc6120#section-7


Public Properties
 PropertyDefined By
  jid : EscapedJID
[read-only] JID that the server has accepted.
BindExtension
  resource : String
Resource.
BindExtension
 Inheritedxml : XML
[override] Override in order to take care of setting the Namespace and checking for containing extensions.
Extension
Public Methods
 MethodDefined By
  
BindExtension(parent:XML = null)
Support for resource binding is REQUIRED in XMPP client and server implementations.
BindExtension
 Inherited
Add extension to the list of the given namespace and insert to the XML element as a child.
ExtensionContainer
 Inherited
ExtensionContainer
 Inherited
getAllExtensionsByNS(nameSpace:String):Array
ExtensionContainer
 Inherited
getAttribute(name:String):String
Convinience method for getting element value from the XML.
XMLStanza
 Inherited
getChildAttribute(elem:String, name:String):String
Convinience method for getting child element attribute value from the XML.
XMLStanza
 Inherited
getChildField(elem:String, name:String):String
Convinience method for getting child element value from the XML.
XMLStanza
  
BindExtension
 Inherited
getExtension(elementName:String):IExtension
Get the extension having the given element name.
ExtensionContainer
 Inherited
getField(name:String):String
Convinience method for getting element value from the XML.
XMLStanza
  
getNS():String
BindExtension
 Inherited
remove():void
Removes the extension from its parent.
Extension
 Inherited
removeAllExtensions(nameSpace:String):void
ExtensionContainer
 Inherited
removeExtension(extension:IExtension):Boolean
ExtensionContainer
 Inherited
removeFields(name:String):void
Helper method for removing all child elements that have the given name.
XMLStanza
 Inherited
setAttribute(name:String, value:String):void
Convinience method for setting a value to a element in the XML.
XMLStanza
 Inherited
setChildAttribute(elem:String, name:String, value:String):void
Convinience method for setting an attribute for a child element of the XML.
XMLStanza
 Inherited
setChildField(elem:String, name:String, value:String):void
Convinience method for setting a value for a child element of the XML.
XMLStanza
 Inherited
setField(name:String, value:String):void
Convinience method for setting a value to a element in the XML.
XMLStanza
 Inherited
toString():String
Converts the base stanza XML to a string.
XMLStanza
Public Constants
 ConstantDefined By
 InheritedDEFAULT_NS : Namespace
[static] Default XML namespace.
XMLStanza
  ELEMENT_NAME : String = bind
[static]
BindExtension
 InheritedFLASH_NS : Namespace
[static]
XMLStanza
  NS : String = urn:ietf:params:xml:ns:xmpp-bind
[static]
BindExtension
 InheritedSTREAM_NS : Namespace
[static]
XMLStanza
Property Detail
jidproperty
jid:EscapedJID  [read-only]

JID that the server has accepted. Read-only.


Implementation
    public function get jid():EscapedJID
resourceproperty 
resource:String

Resource.

Use null to remove.

Instead of asking the server to generate a resourcepart on its behalf, a client MAY attempt to submit a resourcepart that it has generated or that the controlling user has provided.


Implementation
    public function get resource():String
    public function set resource(value:String):void

See also

Constructor Detail
BindExtension()Constructor
public function BindExtension(parent:XML = null)

Support for resource binding is REQUIRED in XMPP client and server implementations.

Parameters
parent:XML (default = null)
Method Detail
getElementName()method
public function getElementName():String

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

Returns
String
Constant Detail
ELEMENT_NAMEConstant
public static const ELEMENT_NAME:String = bind

NSConstant 
public static const NS:String = urn:ietf:params:xml:ns:xmpp-bind