| Pakiet | mx.messaging.channels |
| Klasa | public class StreamingConnectionHandler |
| Dziedziczenie | StreamingConnectionHandler EventDispatcher Object |
| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
| Właściwość | Zdefiniowane przez | ||
|---|---|---|---|
| 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 | ||
| Metoda | Zdefiniowane przez | ||
|---|---|---|---|
Constructor. | StreamingConnectionHandler | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Rejestruje obiekt detektora zdarzeń w obiekcie EventDispatcher, dzięki czemu detektor będzie otrzymywał powiadomienia o zdarzeniu. | EventDispatcher | |
Used by the streaming channels to shut down the streaming connection. | StreamingConnectionHandler | ||
![]() |
Wywołuje zdarzenie, tj. kieruje je do przepływu zdarzeń. | EventDispatcher | |
![]() |
Sprawdza, czy obiekt EventDispatcher zawiera jakiekolwiek detektory zarejestrowane dla konkretnego typu zdarzeń. | EventDispatcher | |
![]() |
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość. | Object | |
![]() |
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr. | Object | |
Used by the streaming channels to set up the streaming connection if
necessary and issue the open request to the server. | StreamingConnectionHandler | ||
![]() |
Wskazuje, czy określona właściwość istnieje i jest przeliczalna. | Object | |
![]() |
Usuwa detektor z obiektu EventDispatcher. | EventDispatcher | |
![]() |
Ustawia dostępność właściwości dynamicznej używanej w pętlach. | Object | |
![]() |
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych. | Object | |
![]() |
Zwraca ciąg reprezentujący określony obiekt. | Object | |
![]() |
Zwraca pierwotną wartość dla określonego obiektu. | Object | |
![]() |
Sprawdza, czy detektor zdarzeń określonego typu jest zarejestrowany w tym obiekcie EventDispatcher lub jego elementach macierzystych. | EventDispatcher | |
| Metoda | Zdefiniowane przez | ||
|---|---|---|---|
Used by the streamProgressHandler to read a message. | StreamingConnectionHandler | ||
| Zdarzenie | Podsumowanie | Zdefiniowane przez | ||
|---|---|---|---|---|
![]() | [zdarzenie broadcast] Wywoływane, gdy program Flash Player lub aplikacja środowiska wykonawczego AIR uzyskuje fokus w systemie operacyjnym i przechodzi w stan aktywny. | EventDispatcher | ||
![]() | [zdarzenie broadcast] Wywoływane, gdy program Flash Player lub aplikacja AIR traci fokus w systemie operacyjnym i przechodzi w stan nieaktywny. | EventDispatcher | ||
| Dispatched when the StreamingConnectionHandler receives a status command from the server. | StreamingConnectionHandler | |||
| Stała | Zdefiniowane przez | ||
|---|---|---|---|
| DISCONNECT_CODE : String = "disconnect" [statyczny]
The code for the StatusEvent dispatched by this handler when a disconnect
command is received from the server. | StreamingConnectionHandler | ||
channel | właściwość |
protected var channel:Channel| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
The Channel that uses this class.
chunkBuffer | właściwość |
protected var chunkBuffer:ByteArray| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | 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 | właściwość |
protected var dataBytesToRead:int = -1| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | 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 | właściwość |
protected var dataOffset:int| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Index into the chunk buffer pointing to the first byte of chunk data.
StreamingConnectionHandler | () | Konstruktor |
public function StreamingConnectionHandler(channel:Channel, log:ILogger)| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Constructor.
Parametrychannel:Channel — The Channel that uses this class.
| |
log:ILogger — Reference to the logger for the associated Channel.
|
closeStreamingConnection | () | metoda |
public function closeStreamingConnection():void| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Used by the streaming channels to shut down the streaming connection.
openStreamingConnection | () | metoda |
public function openStreamingConnection(appendToURL:String = null):void| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | 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.
Parametry
appendToURL:String (default = null) — The string to append such as session id to the endpoint
url while making the streaming connection request.
|
readMessage | () | metoda |
protected function readMessage():IMessage| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Used by the streamProgressHandler to read a message. Default implementation returns null and subclasses must override this method.
ZwracaIMessage — Returns the message that was read.
|
status | Zdarzenie |
flash.events.StatusEventwłaściwość StatusEvent.type =
flash.events.StatusEvent| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Dispatched when the StreamingConnectionHandler receives a status command from the server.
DISCONNECT_CODE | Stała |
public static const DISCONNECT_CODE:String = "disconnect"| Wersja języka: | ActionScript 3.0 |
| Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
| Wersje środowiska wykonawczego: | 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, 12:06 PM Z
Ukryj dziedziczone właściwości publiczne
Pokaż dziedziczone właściwości publiczne