| Package | org.igniterealtime.xiff.core |
| Class | public class Browser |
| Inheritance | Browser Object |
| Implements | IBrowser |
This class provides a means of querying for available services on an XMPP server using the Disco protocol extension. For more information on Disco, take a look at XEP-0030 and XEP-0011 (obsolete) for the protocol enhancement specifications.
See also
| Property | Defined By | ||
|---|---|---|---|
| connection : IXMPPConnection
The instance of the XMPPConnection class to use for sending and
receiving data. | Browser | ||
| Method | Defined By | ||
|---|---|---|---|
Browser(aConnection:IXMPPConnection)
Creates a new Browser object. | Browser | ||
Use the OBSOLETE BrowseExtension (jabber:iq:browse namespace)
to query a resource for supported features and children. | Browser | ||
| Browser | |||
| Browser | |||
Retrieves a list of available service information from the server specified. | Browser | ||
Retrieves a list of available services items from the server specified. | Browser | ||
| connection | property |
connection:IXMPPConnectionThe instance of the XMPPConnection class to use for sending and receiving data.
public function get connection():IXMPPConnection public function set connection(value:IXMPPConnection):void| Browser | () | Constructor |
public function Browser(aConnection:IXMPPConnection)Creates a new Browser object.
ParametersaConnection:IXMPPConnection — A reference to the XMPPConnection instance to use.
|
| browseItem | () | method |
public function browseItem(id:EscapedJID, callback:Function, errorCallback:Function = null):IIQ
Use the OBSOLETE BrowseExtension (jabber:iq:browse namespace)
to query a resource for supported features and children.
Parameters
id:EscapedJID — The full JabberID to query for service items
| |
callback:Function — The callback function to call when results are retrieved
| |
errorCallback:Function (default = null) — The callback function to call when errors are received
|
IIQ — org.igniterealtime.xiff.data.IQ
|
See also
| getNodeInfo | () | method |
public function getNodeInfo(service:EscapedJID, node:String, callback:Function, errorCallback:Function = null):IIQ
Parameters
service:EscapedJID | |
node:String | |
callback:Function | |
errorCallback:Function (default = null) |
IIQ — org.igniterealtime.xiff.data.IQ
|
See also
| getNodeItems | () | method |
public function getNodeItems(service:EscapedJID, node:String, callback:Function, errorCallback:Function = null):IIQ
Parameters
service:EscapedJID | |
node:String | |
callback:Function | |
errorCallback:Function (default = null) |
IIQ — org.igniterealtime.xiff.data.IQ
|
See also
| getServiceInfo | () | method |
public function getServiceInfo(server:EscapedJID, callback:Function, errorCallback:Function = null):IIQ
Retrieves a list of available service information from the server specified. On successful query,
the callback specified will be called and passed a single parameter containing
a reference to an IQ containing the query results.
Parameters
server:EscapedJID — The server to query for available service information
| |
callback:Function — The callback function to call when results are retrieved
| |
errorCallback:Function (default = null) — The callback function to call when errors are received
|
IIQ — org.igniterealtime.xiff.data.IQ
|
See also
| getServiceItems | () | method |
public function getServiceItems(server:EscapedJID, callback:Function, errorCallback:Function = null):IIQRetrieves a list of available services items from the server specified. Items include things such as available transports and user directories. On successful query, the callback specified in the will be called and passed a single parameter containing the query results.
Parameters
server:EscapedJID — The server to query for service items
| |
callback:Function — The callback function to call when results are retrieved
| |
errorCallback:Function (default = null) — The callback function to call when errors are received
|
IIQ — org.igniterealtime.xiff.data.IQ
|
See also