| Package | org.igniterealtime.xiff.core |
| Class | public class XMPPBOSHConnection |
| Inheritance | XMPPBOSHConnection XMPPConnection flash.events.EventDispatcher |
| Implements | IXMPPConnection |
Using BOSH do not prevent your application from respecting Adobe Flash Player policy file issues. HTTP requests to your server must be authorized with a crossdomain.xml file in your webserver root.
For eJabberd users : if your crossdomain policy file cannot be served by your server, this issue can be solved with an Apache proxy redirect so that any automatic Flash/Flex calls to an URL like http://xmppserver:5280/crossdomain.xml will be redirected as an URL of your choice such as http://webserver/crossdomain.xml
Warning: if you are using BOSH through HTTPS, your crossdomain policy file must also be served through HTTPS. Your application (if online) must also be served through HTTPS else you will have a crossdomain policy issue. This issue can be solved by using the secure property of the allow-access-from node in the crossdomain.xml file. But this is not recommended by Adobe.
See also
| Property | Defined by | ||
|---|---|---|---|
| boshPath : String | XMPPBOSHConnection | ||
![]() | compress : Boolean
Shall the zlib compression be allowed if the server supports it.
| XMPPConnection | |
![]() | domain : String
The XMPP domain to use with the server.
| XMPPConnection | |
| hold : uint | XMPPBOSHConnection | ||
| httpServer : String [read-only]
Server URI
| XMPPBOSHConnection | ||
![]() | ignoreWhitespace : Boolean
Determines whether whitespace will be ignored on incoming XML data.
| XMPPConnection | |
![]() | incomingBytes : uint
Get the count of the received bytes.
| XMPPConnection | |
![]() | jid : UnescapedJID
Gets the fully qualified unescaped JID of the user.
| XMPPConnection | |
| maxConcurrentRequests : uint | XMPPBOSHConnection | ||
![]() | openConnections : Array [static]
Reference to all active connections.
| XMPPConnection | |
![]() | outgoingBytes : uint
Get the count of current bytes sent by this connection
| XMPPConnection | |
![]() | password : String
The password to use when logging in.
| XMPPConnection | |
![]() | port : uint
The port to use when connecting.
| XMPPConnection | |
![]() | queuePresences : Boolean
Should the connection queue presence events for a small interval so that it can send multiple in a batch?
| XMPPConnection | |
![]() | resource : String
The resource to use when logging in.
| XMPPConnection | |
| secure : Boolean
HTTP bind requests type.
| XMPPBOSHConnection | ||
![]() | server : String
The XMPP server to use for connection.
| XMPPConnection | |
![]() | useAnonymousLogin : Boolean
Whether to use anonymous login or not.
| XMPPConnection | |
![]() | username : String
The username to use for connection.
| XMPPConnection | |
| wait : uint | XMPPBOSHConnection | ||
| Method | Defined by | ||
|---|---|---|---|
|
XMPPBOSHConnection(secure:Boolean = false)
| XMPPBOSHConnection | ||
![]() |
changePassword(password:String):void
Changes the user's account password on the server.
| XMPPConnection | |
|
connect(streamType:uint = 0):Boolean
| XMPPBOSHConnection | ||
![]() |
disableSASLMechanism(name:String):void
[static]
Remove a SASL mechanism.
| XMPPConnection | |
|
disconnect():void
| XMPPBOSHConnection | ||
![]() |
getRegistrationFields():void
Issues a request for the information that must be submitted for registration with the server.
| XMPPConnection | |
![]() |
isActive():Boolean
Determines whether the connection with the server is currently active.
| XMPPConnection | |
![]() |
isLoggedIn():Boolean
Determines whether the user is connected and logged into the server.
| XMPPConnection | |
|
pauseSession(seconds:uint):Boolean
| XMPPBOSHConnection | ||
|
processConnectionResponse(responseBody:XMLNode):void
| XMPPBOSHConnection | ||
![]() |
registerSASLMechanism(name:String, authClass:Class):void
[static]
Add a SASL mechanism.
| XMPPConnection | |
![]() |
send(data:IXMPPStanza):void
Sends data to the server.
| XMPPConnection | |
|
sendKeepAlive():void
| XMPPBOSHConnection | ||
![]() |
sendRegistrationFields(fieldMap:Object, key:String):void
Registers a new account with the server, sending the registration data as specified in the fieldMap
| XMPPConnection | |
| Method | Defined by | ||
|---|---|---|---|
|
handleNodeType(node:XMLNode):void
| XMPPBOSHConnection | ||
|
restartStream():void
| XMPPBOSHConnection | ||
|
sendXML(someData:*):void
| XMPPBOSHConnection | ||
| Constant | Defined by | ||
|---|---|---|---|
| BOSH_VERSION : String = "1.6" [static]
| XMPPBOSHConnection | ||
| HTTP_PORT : uint = 7070 [static]
The default port as per XMPP specification.
| XMPPBOSHConnection | ||
| HTTPS_PORT : uint = 7443 [static]
The default secure port as per XMPP specification.
| XMPPBOSHConnection | ||
![]() | STREAM_TYPE_FLASH : uint = 2 [static]
Stream type lets user set opening/closing tag.
| XMPPConnection | |
![]() | STREAM_TYPE_FLASH_TERMINATED : uint = 3 [static]
Stream type lets user set opening/closing tag.
| XMPPConnection | |
![]() | STREAM_TYPE_STANDARD : uint = 0 [static]
Stream type lets user set opening/closing tag.
| XMPPConnection | |
![]() | STREAM_TYPE_STANDARD_TERMINATED : uint = 1 [static]
Stream type lets user set opening/closing tag.
| XMPPConnection | |
| boshPath | property |
boshPath:String [read-write]Implementation
public function get boshPath():String
public function set boshPath(value:String):void
| hold | property |
hold:uint [read-write]Implementation
public function get hold():uint
public function set hold(value:uint):void
| httpServer | property |
httpServer:String [read-only]Server URI
Implementation public function get httpServer():String
| maxConcurrentRequests | property |
maxConcurrentRequests:uint [read-write]Implementation
public function get maxConcurrentRequests():uint
public function set maxConcurrentRequests(value:uint):void
| secure | property |
secure:Boolean [read-write]HTTP bind requests type. If secure, the requests will be sent through HTTPS. If not, through HTTP.
Implementation public function get secure():Boolean
public function set secure(value:Boolean):void
| wait | property |
wait:uint [read-write]Implementation
public function get wait():uint
public function set wait(value:uint):void
| XMPPBOSHConnection | () | constructor |
public function XMPPBOSHConnection(secure:Boolean = false)Parameters
secure:Boolean (default = false) — Determines which port is used
|
| connect | () | method |
public override function connect(streamType:uint = 0):BooleanParameters
streamType:uint (default = 0) |
Boolean |
| disconnect | () | method |
public override function disconnect():void
| handleNodeType | () | method |
protected override function handleNodeType(node:XMLNode):voidParameters
node:XMLNode |
| pauseSession | () | method |
public function pauseSession(seconds:uint):BooleanParameters
seconds:uint |
Boolean — true if pause request is sent
|
| processConnectionResponse | () | method |
public function processConnectionResponse(responseBody:XMLNode):voidParameters
responseBody:XMLNode |
| restartStream | () | method |
protected override function restartStream():void
| sendKeepAlive | () | method |
public override function sendKeepAlive():void
| sendXML | () | method |
protected override function sendXML(someData:*):voidParameters
someData:* |
| BOSH_VERSION | constant |
public static const BOSH_VERSION:String = "1.6"
The default value is 1.6.
| HTTP_PORT | constant |
public static const HTTP_PORT:uint = 7070The default port as per XMPP specification.
The default value is 7070.
| HTTPS_PORT | constant |
public static const HTTPS_PORT:uint = 7443The default secure port as per XMPP specification.
The default value is 7443.