패키지 | mx.messaging.channels |
클래스 | public class HTTPChannel |
상속 | HTTPChannel PollingChannel Channel EventDispatcher Object |
하위 클래스 | SecureHTTPChannel, StreamingHTTPChannel |
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The HTTPChannel relies on network services native to Flash Player and AIR, and exposed to ActionScript by the URLLoader class. This channel uses URLLoader exclusively, and creates a new URLLoader per request.
Channels are created within the framework using the
ServerConfig.getChannel()
method. Channels can be constructed
directly and assigned to a ChannelSet if desired.
Channels represent a physical connection to a remote endpoint. Channels are shared across destinations by default. This means that a client targetting different destinations may use the same Channel to communicate with these destinations.
When used in polling mode, this Channel polls the server for new messages
based on the polling-interval-seconds
property in the configuration file,
and this can be changed by setting the pollingInterval
property.
The default value is 3 seconds.
To enable polling, the channel must be connected and the polling-enabled
property in the configuration file must be set to true
, or the
pollingEnabled
property of the Channel must be set to true
.
속성 | 정의 주체 | ||
---|---|---|---|
authenticated : Boolean [읽기 전용]
Indicates if this channel is authenticated. | Channel | ||
channelSets : Array [읽기 전용]
Provides access to the ChannelSets connected to the Channel. | Channel | ||
connected : Boolean [읽기 전용]
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 | ||
constructor : Object
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다. | Object | ||
endpoint : String [읽기 전용]
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 | ||
piggybackingEnabled : Boolean
Indicates whether this channel will piggyback poll requests along
with regular outbound messages when an outstanding poll is not in
progress. | HTTPChannel | ||
polling : Boolean [읽기 전용]
Reports whether the channel is actively polling. | HTTPChannel | ||
pollingEnabled : Boolean
Indicates whether this channel is enabled to poll. | HTTPChannel | ||
pollingInterval : Number
Provides access to the polling interval for this Channel. | HTTPChannel | ||
protocol : String [재정의] [읽기 전용]
Returns the protocol for this channel (http). | HTTPChannel | ||
reconnecting : Boolean [읽기 전용]
Indicates whether this channel is in the process of reconnecting to an
alternate endpoint. | Channel | ||
recordMessageSizes : Boolean [읽기 전용]
Channel property determines the level of performance information injection - whether
we inject message sizes or not. | Channel | ||
recordMessageTimes : Boolean [읽기 전용]
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 |
메서드 | 정의 주체 | ||
---|---|---|---|
Constructor. | HTTPChannel | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
리스너에서 이벤트 알림을 받을 수 있도록 EventDispatcher 객체에 이벤트 리스너 객체를 등록합니다. | EventDispatcher | ||
Subclasses should override this method to apply any settings that may be
necessary for an individual channel. | Channel | ||
Connects the ChannelSet to the Channel. | Channel | ||
Disables polling based on the number of times enablePolling()
and disablePolling() have been invoked. | PollingChannel | ||
Disconnects the ChannelSet from the Channel. | Channel | ||
이벤트를 이벤트 흐름으로 전달합니다. | EventDispatcher | ||
Enables polling based on the number of times enablePolling()
and disablePolling() have been invoked. | PollingChannel | ||
EventDispatcher 객체에 특정 유형의 이벤트에 대한 리스너가 등록되어 있는지 여부를 확인합니다. | EventDispatcher | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
Sends a CommandMessage to the server to logout if the Channel is connected. | Channel | ||
Initiates a poll operation if there are consumers subscribed to this channel,
and polling is enabled for this channel. | PollingChannel | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
EventDispatcher 객체에서 리스너를 제거합니다. | EventDispatcher | ||
[재정의]
Sends the specified message to its target destination. | PollingChannel | ||
Sets the credentials to the specified value. | Channel | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 프리미티브 값을 반환합니다. | Object | ||
이 EventDispatcher 객체 또는 조상 객체에 지정한 이벤트 유형에 대한 이벤트 리스너가 등록되어 있는지 여부를 확인합니다. | EventDispatcher |
piggybackingEnabled | 속성 |
piggybackingEnabled:Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Indicates whether this channel will piggyback poll requests along with regular outbound messages when an outstanding poll is not in progress. This allows the server to piggyback data for the client along with its response to client's message.
구현
public function get piggybackingEnabled():Boolean
public function set piggybackingEnabled(value:Boolean):void
polling | 속성 |
pollingEnabled | 속성 |
pollingEnabled:Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Indicates whether this channel is enabled to poll.
구현
public function get pollingEnabled():Boolean
public function set pollingEnabled(value:Boolean):void
pollingInterval | 속성 |
pollingInterval:Number
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Provides access to the polling interval for this Channel. The value is in milliseconds. This value determines how often this Channel requests messages from the server, to approximate server push.
구현
public function get pollingInterval():Number
public function set pollingInterval(value:Number):void
오류
ArgumentError — If the pollingInterval is assigned a value of 0 or
less.
|
protocol | 속성 |
HTTPChannel | () | 생성자 |
public function HTTPChannel(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 |
Constructor.
매개 변수id:String (default = null ) — The id of this Channel.
| |
uri:String (default = null ) — The uri for this Channel.
|
Tue Jun 12 2018, 03:17 PM Z