Referência do ActionScript® 3.0 para Adobe® Flash® Platform
Início  |  Ocultar listas de Pacotes e Classes |  Pacotes  |  Classes  |  Novidades  |  Índice  |  Apêndices  |  Por que inglês?
Filtros: Recuperando dados do servidor...
Recuperando dados do servidor...
mx.messaging.channels 

HTTPChannel  - AS3 BlazeDS LCDS

Pacotemx.messaging.channels
Classepublic class HTTPChannel
HerançaHTTPChannel Inheritance PollingChannel Inheritance Channel Inheritance EventDispatcher Inheritance Object
Subclasses SecureHTTPChannel, StreamingHTTPChannel

Versão da linguagem: ActionScript 3.0
Versões de produto: BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3
Versões de runtime: Flash Player 9, AIR 1.1

The HTTPChannel class provides the HTTP support for messaging. You can configure this Channel to poll the server at an interval to approximate server push. You can also use this Channel with polling disabled to send RPC messages to remote destinations to invoke their methods.

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.



Propriedades públicas
 PropriedadeDefinido por
 Inheritedauthenticated : Boolean
[somente leitura] Indicates if this channel is authenticated.
Channel
 InheritedchannelSets : Array
[somente leitura] Provides access to the ChannelSets connected to the Channel.
Channel
 Inheritedconnected : Boolean
[somente leitura] Indicates whether this channel has established a connection to the remote destination.
Channel
 InheritedconnectTimeout : int
Provides access to the connect timeout in seconds for the channel.
Channel
 Inheritedconstructor : Object
Uma referência ao objeto de classe ou à função de construtor de uma determinada ocorrência de objeto.
Object
 Inheritedendpoint : String
[somente leitura] Provides access to the endpoint for this channel.
Channel
 InheritedfailoverURIs : Array
Provides access to the set of endpoint URIs that this channel can attempt to failover to if the endpoint is clustered.
Channel
 Inheritedid : 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
[somente leitura] 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
[substituir] [somente leitura] Returns the protocol for this channel (http).
HTTPChannel
 Inheritedreconnecting : Boolean
[somente leitura] Indicates whether this channel is in the process of reconnecting to an alternate endpoint.
Channel
 InheritedrecordMessageSizes : Boolean
[somente leitura] Channel property determines the level of performance information injection - whether we inject message sizes or not.
Channel
 InheritedrecordMessageTimes : Boolean
[somente leitura] Channel property determines the level of performance information injection - whether we inject timestamps or not.
Channel
 InheritedrequestTimeout : int
Provides access to the default request timeout in seconds for the channel.
Channel
 Inheriteduri : String
Provides access to the URI used to create the whole endpoint URI for this channel.
Channel
Propriedades protegidas
 PropriedadeDefinido por
 InheritedshouldBeConnected : Boolean
[somente leitura] Indicates whether this channel should be connected to its endpoint.
Channel
Métodos públicos
 MétodoDefinido por
  
HTTPChannel(id:String = null, uri:String = null)
Constructor.
HTTPChannel
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra um objeto de ouvinte de evento em um objeto EventDispatcher, de forma que o ouvinte receba a notificação de um evento.
EventDispatcher
 Inherited
Subclasses should override this method to apply any settings that may be necessary for an individual channel.
Channel
 Inherited
connect(channelSet:ChannelSet):void
Connects the ChannelSet to the Channel.
Channel
 Inherited
Disables polling based on the number of times enablePolling() and disablePolling() have been invoked.
PollingChannel
 Inherited
Disconnects the ChannelSet from the Channel.
Channel
 Inherited
Envia um evento para o fluxo de eventos.
EventDispatcher
 Inherited
Enables polling based on the number of times enablePolling() and disablePolling() have been invoked.
PollingChannel
 Inherited
Verifica se o objeto EventDispatcher tem ouvintes registrados para um tipo específico de evento.
EventDispatcher
 Inherited
Indica se um objeto tem uma propriedade especificada definida.
Object
 Inherited
Indica se uma ocorrência da classe Object está na cadeia de protótipos do objeto especificado como o parâmetro.
Object
 Inherited
Sends a CommandMessage to the server to logout if the Channel is connected.
Channel
 Inherited
Initiates a poll operation if there are consumers subscribed to this channel, and polling is enabled for this channel.
PollingChannel
 Inherited
Indica se a propriedade especificada existe e é enumerável.
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Remove um ouvinte do objeto EventDispatcher.
EventDispatcher
 Inherited
send(agent:MessageAgent, message:IMessage):void
[substituir] Sends the specified message to its target destination.
PollingChannel
 Inherited
setCredentials(credentials:String, agent:MessageAgent = null, charset:String = null):void
Sets the credentials to the specified value.
Channel
 Inherited
Define a disponibilidade de uma propriedade dinâmica para operações de repetição.
Object
 Inherited
Retorna a representação da string deste objeto, formatado segundo as convenções específicas para a localidade.
Object
 Inherited
Retorna a representação de string do objeto especificado.
Object
 Inherited
Retorna o valor primitivo do objeto especificado.
Object
 Inherited
Verifica se um ouvinte de evento está registrado nesse objeto EventDispatcher ou em qualquer um de seus ancestrais para o tipo de evento especificado.
EventDispatcher
Métodos protegidos
 MétodoDefinido por
 Inherited
Applies the client load balancing urls if they exists.
Channel
 Inherited
Processes a failed internal connect and dispatches the FAULT event for the channel.
Channel
 Inherited
Processes a successful internal connect and dispatches the CONNECT event for the Channel.
Channel
 Inherited
Handles a connect timeout by dispatching a ChannelFaultEvent.
Channel
 Inherited
Processes a failed internal disconnect and dispatches the FAULT event for the channel.
Channel
 Inherited
disconnectSuccess(rejected:Boolean = false):void
Processes a successful internal disconnect and dispatches the DISCONNECT event for the Channel.
Channel
 Inherited
Handles a change to the guard condition for managing initial Channel connect for the application.
Channel
 Inherited
Returns the appropriate MessageResponder for the Channel's send() method.
Channel
 Inherited
Connects the Channel to its endpoint.
Channel
 Inherited
internalDisconnect(rejected:Boolean = false):void
Disconnects the Channel from its endpoint.
Channel
 Inherited
Sends the Message out over the Channel and routes the response to the responder.
Channel
Eventos
 Evento Resumo Definido por
 Inherited[transmissão de evento] Despachado quando o Flash Player ou o aplicativo do AIR ganha o foco do sistema operacional e está se tornando inativo.EventDispatcher
 InheritedDispatched after the channel has connected to its endpoint.Channel
 InheritedDispatched after the channel has disconnected from its endpoint.Channel
 InheritedDispatched after the channel has faulted.Channel
 Inherited[transmissão de evento] Despachado quando o Flash Player ou o aplicativo do AIR perde o foco do sistema operacional e está se tornando inativo.EventDispatcher
 InheritedDispatched when a channel receives a message from its endpoint.Channel
 InheritedDispatched when a property of the channel changes.Channel
Detalhes da propriedade

piggybackingEnabled

propriedade
piggybackingEnabled:Boolean

Versão da linguagem: ActionScript 3.0
Versões de produto: BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3
Versões de runtime: 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.



Implementação
    public function get piggybackingEnabled():Boolean
    public function set piggybackingEnabled(value:Boolean):void

polling

propriedade 
polling:Boolean  [somente leitura]

Versão da linguagem: ActionScript 3.0
Versões de produto: BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3
Versões de runtime: Flash Player 9, AIR 1.1

Reports whether the channel is actively polling.



Implementação
    public function get polling():Boolean

pollingEnabled

propriedade 
pollingEnabled:Boolean

Versão da linguagem: ActionScript 3.0
Versões de produto: BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3
Versões de runtime: Flash Player 9, AIR 1.1

Indicates whether this channel is enabled to poll.



Implementação
    public function get pollingEnabled():Boolean
    public function set pollingEnabled(value:Boolean):void

pollingInterval

propriedade 
pollingInterval:Number

Versão da linguagem: ActionScript 3.0
Versões de produto: BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3
Versões de runtime: 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.



Implementação
    public function get pollingInterval():Number
    public function set pollingInterval(value:Number):void

Lança
ArgumentError — If the pollingInterval is assigned a value of 0 or less.

protocol

propriedade 
protocol:String  [somente leitura] [substituir]

Versão da linguagem: ActionScript 3.0
Versões de produto: BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3
Versões de runtime: Flash Player 9, AIR 1.1

Returns the protocol for this channel (http).



Implementação
    override public function get protocol():String
Detalhes do construtor

HTTPChannel

()Construtor
public function HTTPChannel(id:String = null, uri:String = null)

Versão da linguagem: ActionScript 3.0
Versões de produto: BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3
Versões de runtime: Flash Player 9, AIR 1.1

Constructor.

Parâmetros
id:String (default = null) — The id of this Channel.
 
uri:String (default = null) — The uri for this Channel.




[ X ]Por que inglês?
O conteúdo na Referência do ActionScript 3.0 aparece em inglês

Nem todas as partes da Referência do ActionScript 3.0 estão traduzidas em todos os idiomas. Quando um elemento de um idioma não está traduzido, ele é exibido em inglês. Por exemplo, a classe ga.controls.HelpBox não está traduzida em nenhum idioma. Por isso, na versão da referência em português do Brasil, a classe ga.controls.HelpBox é exibida em inglês.