Package | mx.messaging.channels |
Class | public class StreamingAMFChannel |
Inheritance | StreamingAMFChannel AMFChannel NetConnectionChannel PollingChannel Channel flash.events.EventDispatcher |
Subclasses | SecureStreamingAMFChannel |
Language Version : | ActionScript 3.0 |
Product Versions : | BlazeDS 4, LCDS 3 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
Messages sent by this channel to the server are sent using a NetConnection which uses an HTTP connection internally for the duration of the operation. Once the message is sent and an acknowledgement or fault is returned the HTTP connection used by NetConnection is released by the channel. These client-to-server messages are not sent over the streaming HTTP connection that the channel holds open to receive server pushed data.
Although this class extends the base AMFChannel to inherit the regular AMF handling, it does not support polling.
Method | Defined By | ||
---|---|---|---|
StreamingAMFChannel(id:String = null, uri:String = null)
Constructor. | StreamingAMFChannel | ||
applySettings(settings:XML):void
Subclasses should override this method to apply any settings that may be
necessary for an individual channel. | Channel | ||
connect(channelSet:ChannelSet):void
Connects the ChannelSet to the Channel. | Channel | ||
disablePolling():void
Disables polling based on the number of times enablePolling()
and disablePolling() have been invoked. | PollingChannel | ||
disconnect(channelSet:ChannelSet):void
Disconnects the ChannelSet from the Channel. | Channel | ||
enablePolling():void
Enables polling based on the number of times enablePolling()
and disablePolling() have been invoked. | PollingChannel | ||
logout(agent:MessageAgent):void
Sends a CommandMessage to the server to logout if the Channel is connected. | Channel | ||
poll():void [override]
Polling is not supported by this channel. | StreamingAMFChannel | ||
[override]
Sends the specified message to its target destination. | PollingChannel | ||
setCredentials(credentials:String, agent:MessageAgent = null, charset:String = null):void
Sets the credentials to the specified value. | Channel |
StreamingAMFChannel | () | Constructor |
public function StreamingAMFChannel(id:String = null, uri:String = null)
Language Version : | ActionScript 3.0 |
Product Versions : | BlazeDS 4, LCDS 3 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
Constructor.
Parametersid:String (default = null ) — The id of this Channel.
| |
uri:String (default = null ) — The uri for this Channel.
|
poll | () | method |
override public function poll():void
Language Version : | ActionScript 3.0 |
Product Versions : | BlazeDS 4, LCDS 3 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
Polling is not supported by this channel.