Paket | mx.messaging.channels |
Sınıf | public class HTTPChannel |
Miras Alma | HTTPChannel PollingChannel Channel EventDispatcher Object |
Alt Sınıflar | SecureHTTPChannel, StreamingHTTPChannel |
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümleri: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | 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
.
Özellik | Tanımlayan: | ||
---|---|---|---|
authenticated : Boolean [salt okunur]
Indicates if this channel is authenticated. | Channel | ||
channelSets : Array [salt okunur]
Provides access to the ChannelSets connected to the Channel. | Channel | ||
connected : Boolean [salt okunur]
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
Belirli bir nesne örneği için sınıf nesnesine veya yapıcı işlevine bir başvuru. | Object | ||
endpoint : String [salt okunur]
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 [salt okunur]
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 [geçersiz kıl] [salt okunur]
Returns the protocol for this channel (http). | HTTPChannel | ||
reconnecting : Boolean [salt okunur]
Indicates whether this channel is in the process of reconnecting to an
alternate endpoint. | Channel | ||
recordMessageSizes : Boolean [salt okunur]
Channel property determines the level of performance information injection - whether
we inject message sizes or not. | Channel | ||
recordMessageTimes : Boolean [salt okunur]
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 |
Yöntem | Tanımlayan: | ||
---|---|---|---|
Constructor. | HTTPChannel | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
EventDispatcher nesnesi olan bir olay dinleyici nesnesini, dinleyicinin bir olayın bildirimini alması için kaydeder. | 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 | ||
Olay akışına bir olay gönderir. | EventDispatcher | ||
Enables polling based on the number of times enablePolling()
and disablePolling() have been invoked. | PollingChannel | ||
EventDispatcher nesnesinin belirli bir olay türü için kayıtlı dinleyicisi olup olmadığını kontrol eder. | EventDispatcher | ||
Bir nesnenin belirli bir özelliğinin tanımlı olup olmadığını gösterir. | Object | ||
Object sınıfının bir örneğinin parametre olarak belirtilen nesnenin prototip zincirinde olup olmadığını gösterir. | 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 | ||
Belirtilen özelliğin bulunup bulunmadığını ve numaralandırılabilir olup olmadığını gösterir. | Object | ||
EventDispatcher nesnesinden bir dinleyiciyi kaldırır. | EventDispatcher | ||
[geçersiz kıl]
Sends the specified message to its target destination. | PollingChannel | ||
Sets the credentials to the specified value. | Channel | ||
Dinamik bir özelliğin döngü işlemlerinde kullanılabilirliğini ayarlar. | Object | ||
Bu nesnenin, yerel ayara özel kurallara göre biçimlendirilmiş dize temsilini döndürür. | Object | ||
Belirtilen nesnenin dize olarak temsil edilen halini döndürür. | Object | ||
Belirtilen nesnenin temel değerini döndürür. | Object | ||
Bir olay dinleyicisinin bu EventDispatcher nesnesiyle mi, yoksa onun belirtilen olay türüne yönelik üst öğelerinden biriyle mi kayıtlı olduğunu kontrol eder. | EventDispatcher |
piggybackingEnabled | özellik |
piggybackingEnabled:Boolean
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümleri: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get piggybackingEnabled():Boolean
public function set piggybackingEnabled(value:Boolean):void
polling | özellik |
pollingEnabled | özellik |
pollingEnabled:Boolean
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümleri: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Indicates whether this channel is enabled to poll.
Uygulama
public function get pollingEnabled():Boolean
public function set pollingEnabled(value:Boolean):void
pollingInterval | özellik |
pollingInterval:Number
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümleri: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get pollingInterval():Number
public function set pollingInterval(value:Number):void
Atar
ArgumentError — If the pollingInterval is assigned a value of 0 or
less.
|
protocol | özellik |
protocol:String
[salt okunur] [geçersiz kıl] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümleri: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Returns the protocol for this channel (http).
Uygulama
override public function get protocol():String
HTTPChannel | () | Yapıcı |
public function HTTPChannel(id:String = null, uri:String = null)
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümleri: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Constructor.
Parametrelerid:String (default = null ) — The id of this Channel.
| |
uri:String (default = null ) — The uri for this Channel.
|
Tue Jun 12 2018, 01:09 PM Z