Paquete | mx.messaging.channels |
Clase | public class StreamingConnectionHandler |
Herencia | StreamingConnectionHandler EventDispatcher Object |
Versión del lenguaje: | ActionScript 3.0 |
Versiones de producto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Propiedad | Definido por | ||
---|---|---|---|
channel : Channel
The Channel that uses this class. | StreamingConnectionHandler | ||
chunkBuffer : ByteArray
Byte buffer used to store the current chunk from the remote endpoint. | StreamingConnectionHandler | ||
dataBytesToRead : int = -1
Counter that keeps track of how many data bytes remain to be read for the current chunk. | StreamingConnectionHandler | ||
dataOffset : int
Index into the chunk buffer pointing to the first byte of chunk data. | StreamingConnectionHandler |
Método | Definido por | ||
---|---|---|---|
Constructor. | StreamingConnectionHandler | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra un objeto de detector de eventos con un objeto EventDispatcher, de modo que el detector reciba la notificación de un evento. | EventDispatcher | ||
Used by the streaming channels to shut down the streaming connection. | StreamingConnectionHandler | ||
Distribuye un evento en el flujo del evento. | EventDispatcher | ||
Comprueba si el objeto EventDispatcher tiene detectores registrados para un tipo concreto de evento. | EventDispatcher | ||
Indica si un objeto tiene definida una propiedad especificada. | Object | ||
Indica si hay una instancia de la clase Object en la cadena de prototipo del objeto especificado como parámetro. | Object | ||
Used by the streaming channels to set up the streaming connection if
necessary and issue the open request to the server. | StreamingConnectionHandler | ||
Indica si existe la propiedad especificada y si es enumerable. | Object | ||
Elimina un detector del objeto EventDispatcher. | EventDispatcher | ||
Establece la disponibilidad de una propiedad dinámica para operaciones de bucle. | Object | ||
Devuelve la representación de cadena de este objeto, con formato según las convenciones específicas de configuración regional. | Object | ||
Devuelve la representación de cadena del objeto especificado. | Object | ||
Devuelve el valor simple del objeto especificado. | Object | ||
Comprueba si hay registrado un detector de eventos con este objeto EventDispatcher o con cualquiera de sus ascendientes para el tipo de evento concreto. | EventDispatcher |
Método | Definido por | ||
---|---|---|---|
Used by the streamProgressHandler to read a message. | StreamingConnectionHandler |
Evento | Resumen | Definido por | ||
---|---|---|---|---|
[evento broadcast] Se distribuye cuando Flash Player o AIR pasan a estar activos. | EventDispatcher | |||
[evento broadcast] Se distribuye cuando Flash Player o de AIR pasan a estar inactivos. | EventDispatcher | |||
Dispatched when the StreamingConnectionHandler receives a status command from the server. | StreamingConnectionHandler |
Constante | Definido por | ||
---|---|---|---|
DISCONNECT_CODE : String = "disconnect" [estática]
The code for the StatusEvent dispatched by this handler when a disconnect
command is received from the server. | StreamingConnectionHandler |
channel | propiedad |
protected var channel:Channel
Versión del lenguaje: | ActionScript 3.0 |
Versiones de producto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
The Channel that uses this class.
chunkBuffer | propiedad |
protected var chunkBuffer:ByteArray
Versión del lenguaje: | ActionScript 3.0 |
Versiones de producto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Byte buffer used to store the current chunk from the remote endpoint. Once a full chunk has been buffered, a message instance encoded in binary AMF format can be read from the chunk and dispatched.
dataBytesToRead | propiedad |
protected var dataBytesToRead:int = -1
Versión del lenguaje: | ActionScript 3.0 |
Versiones de producto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Counter that keeps track of how many data bytes remain to be read for the current chunk. A sentinal value of -1 indicates an initial state (either waiting for the first chunk or just finished parsing the previous chunk).
dataOffset | propiedad |
protected var dataOffset:int
Versión del lenguaje: | ActionScript 3.0 |
Versiones de producto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Index into the chunk buffer pointing to the first byte of chunk data.
StreamingConnectionHandler | () | Información sobre |
public function StreamingConnectionHandler(channel:Channel, log:ILogger)
Versión del lenguaje: | ActionScript 3.0 |
Versiones de producto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Constructor.
Parámetroschannel:Channel — The Channel that uses this class.
| |
log:ILogger — Reference to the logger for the associated Channel.
|
closeStreamingConnection | () | método |
public function closeStreamingConnection():void
Versión del lenguaje: | ActionScript 3.0 |
Versiones de producto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Used by the streaming channels to shut down the streaming connection.
openStreamingConnection | () | método |
public function openStreamingConnection(appendToURL:String = null):void
Versión del lenguaje: | ActionScript 3.0 |
Versiones de producto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Used by the streaming channels to set up the streaming connection if necessary and issue the open request to the server.
Parámetros
appendToURL:String (default = null ) — The string to append such as session id to the endpoint
url while making the streaming connection request.
|
readMessage | () | método |
protected function readMessage():IMessage
Versión del lenguaje: | ActionScript 3.0 |
Versiones de producto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Used by the streamProgressHandler to read a message. Default implementation returns null and subclasses must override this method.
Valor devueltoIMessage — Returns the message that was read.
|
status | Evento |
flash.events.StatusEvent
propiedad StatusEvent.type =
flash.events.StatusEvent
Versión del lenguaje: | ActionScript 3.0 |
Versiones de producto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Dispatched when the StreamingConnectionHandler receives a status command from the server.
DISCONNECT_CODE | Constante |
public static const DISCONNECT_CODE:String = "disconnect"
Versión del lenguaje: | ActionScript 3.0 |
Versiones de producto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
The code for the StatusEvent dispatched by this handler when a disconnect command is received from the server.
Tue Jun 12 2018, 02:12 PM Z