Package | mx.messaging.channels |
Class | public class NetConnectionChannel |
Inheritance | NetConnectionChannel PollingChannel Channel flash.events.EventDispatcher |
Subclasses | AMFChannel |
Language Version : | ActionScript 3.0 |
Product Versions : | BlazeDS 4, LCDS 3 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
Property | Defined By | ||
---|---|---|---|
authenticated : Boolean [read-only]
Indicates if this channel is authenticated. | Channel | ||
channelSets : Array [read-only]
Provides access to the ChannelSets connected to the Channel. | Channel | ||
connected : Boolean [read-only]
Indicates whether this channel has established a connection to the
remote destination. | Channel | ||
connectTimeout : int
Provides access to the connect timeout in seconds for the channel. | Channel | ||
endpoint : String [read-only]
Provides access to the endpoint for this channel. | Channel | ||
failoverURIs : Array
Provides access to the set of endpoint URIs that this channel can
attempt to failover to if the endpoint is clustered. | Channel | ||
id : String
Provides access to the id of this channel. | Channel | ||
netConnection : NetConnection [read-only]
Provides access to the associated NetConnection for this Channel. | NetConnectionChannel | ||
protocol : String [read-only]
Provides access to the protocol that the channel uses. | Channel | ||
reconnecting : Boolean [read-only]
Indicates whether this channel is in the process of reconnecting to an
alternate endpoint. | Channel | ||
recordMessageSizes : Boolean [read-only]
Channel property determines the level of performance information injection - whether
we inject message sizes or not. | Channel | ||
recordMessageTimes : Boolean [read-only]
Channel property determines the level of performance information injection - whether
we inject timestamps or not. | Channel | ||
requestTimeout : int
Provides access to the default request timeout in seconds for the
channel. | Channel | ||
uri : String
Provides access to the URI used to create the whole endpoint URI for this channel. | Channel |
Method | Defined By | ||
---|---|---|---|
NetConnectionChannel(id:String = null, uri:String = null)
Creates a new NetConnectionChannel instance. | NetConnectionChannel | ||
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
Initiates a poll operation if there are consumers subscribed to this channel,
and polling is enabled for this channel. | PollingChannel | ||
[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 |
netConnection | property |
netConnection:NetConnection
[read-only] Language Version : | ActionScript 3.0 |
Product Versions : | BlazeDS 4, LCDS 3 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
Provides access to the associated NetConnection for this Channel.
public function get netConnection():NetConnection
NetConnectionChannel | () | Constructor |
public function NetConnectionChannel(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 |
Creates a new NetConnectionChannel instance.
The underlying NetConnection's objectEncoding
is set to ObjectEncoding.AMF3
by default. It can be
changed manually by accessing the channel's netConnection
property. The global NetConnection.defaultObjectEncoding
setting is not honored by this channel.
id:String (default = null ) — The id of this Channel.
| |
uri:String (default = null ) — The uri for this Channel.
|