Package | org.igniterealtime.xiff.data.bind |
Class | public class BindExtension |
Inheritance | BindExtension ![]() ![]() ![]() ![]() |
Implements | IExtension |
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
Property | Defined By | ||
---|---|---|---|
jid : EscapedJID [read-only]
JID that the server has accepted. | BindExtension | ||
resource : String
Resource. | BindExtension | ||
![]() | xml : XML [override]
Override in order to take care of setting the Namespace and
checking for containing extensions. | Extension |
Method | Defined By | ||
---|---|---|---|
BindExtension(parent:XML = null)
Support for resource binding is REQUIRED in XMPP client and server
implementations. | BindExtension | ||
![]() |
Add extension to the list of the given namespace and insert to the XML element as a child. | ExtensionContainer | |
![]() | getAllExtensions():Array | ExtensionContainer | |
![]() | getAllExtensionsByNS(nameSpace:String):Array | ExtensionContainer | |
![]() | getAttribute(name:String):String
Convinience method for getting element value from the XML. | XMLStanza | |
![]() | getChildAttribute(elem:String, name:String):String
Convinience method for getting child element attribute value from the XML. | XMLStanza | |
![]() | getChildField(elem:String, name:String):String
Convinience method for getting child element value from the XML. | XMLStanza | |
getElementName():String | BindExtension | ||
![]() | getExtension(elementName:String):IExtension
Get the extension having the given element name. | ExtensionContainer | |
![]() | getField(name:String):String
Convinience method for getting element value from the XML. | XMLStanza | |
getNS():String | BindExtension | ||
![]() | remove():void
Removes the extension from its parent. | Extension | |
![]() | removeAllExtensions(nameSpace:String):void | ExtensionContainer | |
![]() | removeExtension(extension:IExtension):Boolean | ExtensionContainer | |
![]() | removeFields(name:String):void
Helper method for removing all child elements that have the given name. | XMLStanza | |
![]() | setAttribute(name:String, value:String):void
Convinience method for setting a value to a element in the XML. | XMLStanza | |
![]() | setChildAttribute(elem:String, name:String, value:String):void
Convinience method for setting an attribute for a child element of the XML. | XMLStanza | |
![]() | setChildField(elem:String, name:String, value:String):void
Convinience method for setting a value for a child element of the XML. | XMLStanza | |
![]() | setField(name:String, value:String):void
Convinience method for setting a value to a element in the XML. | XMLStanza | |
![]() | toString():String
Converts the base stanza XML to a string. | XMLStanza |
Constant | Defined By | ||
---|---|---|---|
![]() | DEFAULT_NS : Namespace [static]
Default XML namespace. | XMLStanza | |
ELEMENT_NAME : String = bind [static] | BindExtension | ||
![]() | FLASH_NS : Namespace [static]
| XMLStanza | |
NS : String = urn:ietf:params:xml:ns:xmpp-bind [static] | BindExtension | ||
![]() | STREAM_NS : Namespace [static]
| XMLStanza |
jid | property |
jid:EscapedJID
[read-only] JID that the server has accepted. Read-only.
public function get jid():EscapedJID
resource | property |
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.
public function get resource():String
public function set resource(value:String):void
See also
BindExtension | () | Constructor |
public function BindExtension(parent:XML = null)
Support for resource binding is REQUIRED in XMPP client and server implementations.
Parametersparent:XML (default = null )
|
getElementName | () | method |
public function getElementName():String
ReturnsString |
getNS | () | method |
public function getNS():String
ReturnsString |
ELEMENT_NAME | Constant |
public static const ELEMENT_NAME:String = bind
NS | Constant |
public static const NS:String = urn:ietf:params:xml:ns:xmpp-bind