包 | mx.messaging.channels |
类 | public class NetConnectionChannel |
继承 | NetConnectionChannel ![]() ![]() ![]() ![]() |
子类 | AMFChannel, RTMPChannel |
语言版本: | ActionScript 3.0 |
产品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
运行时版本: | Flash Player 9, AIR 1.1 |
公共属性
属性 | 由以下参数定义 | ||
---|---|---|---|
![]() | authenticated : Boolean [只读]
指示此通道是否已经过身份验证。 | Channel | |
![]() | channelSets : Array [只读]
提供对连接到 Channel 的 ChannelSet 的访问。 | Channel | |
![]() | connected : Boolean [只读]
指示此通道是否已与远程目标建立连接。 | Channel | |
![]() | connectTimeout : int
提供对此通道的连接超时(以秒为单位)的访问。 | Channel | |
![]() | constructor : Object
对类对象或给定对象实例的构造函数的引用。 | Object | |
![]() | endpoint : String [只读]
提供对此通道的端点的访问。 | Channel | |
![]() | failoverURIs : Array
提供对此通道可能尝试将故障转移到的端点 URI 集的访问(如果端点已群集化)。 | Channel | |
![]() | id : String
提供对此通道的 id 的访问。 | Channel | |
netConnection : NetConnection [只读]
提供对与此 Channel 相关联的 NetConnection 的访问权限。 | NetConnectionChannel | ||
![]() | protocol : String [只读]
提供对通道使用的协议的访问。 | Channel | |
![]() | reconnecting : Boolean [只读]
指示此通道是否正在重新连接到其它端点。 | Channel | |
![]() | recordMessageSizes : Boolean [只读]
Channel 属性确定性能信息注入的级别 - 无论我们注入消息大小与否。 | Channel | |
![]() | recordMessageTimes : Boolean [只读]
Channel 属性确定性能信息注入的级别 - 无论我们注入时间戳与否。 | Channel | |
![]() | requestTimeout : int
提供对通道的默认请求超时(以秒为单位)的访问。 | Channel | |
![]() | uri : String
提供对用于创建此通道的整个端点 URI 的 URI 的访问。 | Channel |
受保护的属性
公共方法
方法 | 由以下参数定义 | ||
---|---|---|---|
创建新的 NetConnectionChannel 实例。 | NetConnectionChannel | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。 | EventDispatcher | |
![]() |
子类应覆盖此方法才可应用单个通道可能需要的任何设置。 | Channel | |
![]() |
将 ChannelSet 连接到 Channel。 | Channel | |
![]() |
根据调用 enablePolling() 和 disablePolling() 的次数禁用轮询。 | PollingChannel | |
![]() |
断开 ChannelSet 与 Channel 的连接。 | Channel | |
![]() |
将事件调度到事件流中。 | EventDispatcher | |
![]() |
根据调用 enablePolling() 和 disablePolling() 的次数启用轮询。 | PollingChannel | |
![]() |
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 | EventDispatcher | |
![]() |
表示对象是否已经定义了指定的属性。 | Object | |
![]() |
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | |
![]() |
如果 Channel 已连接,则向服务器发送 CommandMessage 以进行注销。 | Channel | |
![]() |
如果有使用者订阅此通道则会启动轮询操作,同时此通道也会启用轮询。 | PollingChannel | |
![]() |
表示指定的属性是否存在、是否可枚举。 | Object | |
![]() |
从 EventDispatcher 对象中删除侦听器。 | EventDispatcher | |
![]() | [覆盖]
向其目标对象发送指定的消息。 | PollingChannel | |
![]() |
将凭据设置为指定的值。 | Channel | |
![]() |
设置循环操作动态属性的可用性。 | Object | |
![]() |
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | |
![]() |
返回指定对象的字符串表示形式。 | Object | |
![]() |
返回指定对象的原始值。 | Object | |
![]() |
检查是否用此 EventDispatcher 对象或其任何祖代为指定事件类型注册了事件侦听器。 | EventDispatcher |
受保护的方法
受保护的常量
属性详细信息
netConnection | 属性 |
netConnection:NetConnection
[只读] 语言版本: | ActionScript 3.0 |
产品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
运行时版本: | Flash Player 9, AIR 1.1 |
提供对与此 Channel 相关联的 NetConnection 的访问权限。
实现
public function get netConnection():NetConnection
构造函数详细信息
NetConnectionChannel | () | 构造函数 |
public function NetConnectionChannel(id:String = null, uri:String = null)
语言版本: | ActionScript 3.0 |
产品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
运行时版本: | Flash Player 9, AIR 1.1 |
创建新的 NetConnectionChannel 实例。
默认情况下,基础 NetConnection 的 objectEncoding
设置为 ObjectEncoding.AMF3
,还可以通过访问通道的 netConnection
属性手动更改其设置。此通道没有全局 NetConnection.defaultObjectEncoding
设置。
id:String (default = null ) — 此通道的 id。
| |
uri:String (default = null ) — 此 Channel 的 uri。
|
Tue Jun 12 2018, 11:04 AM Z