ActionScript® 3.0 — dokumentacja dla platformy Adobe® Flash®
Strona główna  |  Ukryj listę pakietów i klas |  Pakiety  |  Klasy  |  Nowości  |  Indeks  |  Dodatki  |  Dlaczego język angielski?
Filtry: Pobieranie danych z serwera...
Pobieranie danych z serwera...
mx.messaging.channels 

StreamingConnectionHandler  - AS3 BlazeDS LCDS

Pakietmx.messaging.channels
Klasapublic class StreamingConnectionHandler
DziedziczenieStreamingConnectionHandler Inheritance EventDispatcher Inheritance 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

A helper class that is used by the streaming channels to open an internal HTTP connection to the server that is held open to allow the server to stream data down to the client with no poll overhead.



Właściwości publiczne
 WłaściwośćZdefiniowane przez
 Inheritedconstructor : Object
Odwołanie do obiektu klasy lub funkcji konstruktora, dotyczące danej instancji obiektu.
Object
Właściwości chronione
 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
Metody publiczne
 MetodaZdefiniowane przez
  
Constructor.
StreamingConnectionHandler
 Inherited
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
 Inherited
Wywołuje zdarzenie, tj. kieruje je do przepływu zdarzeń.
EventDispatcher
 Inherited
Sprawdza, czy obiekt EventDispatcher zawiera jakiekolwiek detektory zarejestrowane dla konkretnego typu zdarzeń.
EventDispatcher
 Inherited
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość.
Object
 Inherited
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr.
Object
  
openStreamingConnection(appendToURL:String = null):void
Used by the streaming channels to set up the streaming connection if necessary and issue the open request to the server.
StreamingConnectionHandler
 Inherited
Wskazuje, czy określona właściwość istnieje i jest przeliczalna.
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Usuwa detektor z obiektu EventDispatcher.
EventDispatcher
 Inherited
Ustawia dostępność właściwości dynamicznej używanej w pętlach.
Object
 Inherited
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych.
Object
 Inherited
Zwraca ciąg reprezentujący określony obiekt.
Object
 Inherited
Zwraca pierwotną wartość dla określonego obiektu.
Object
 Inherited
Sprawdza, czy detektor zdarzeń określonego typu jest zarejestrowany w tym obiekcie EventDispatcher lub jego elementach macierzystych.
EventDispatcher
Metody chronione
 MetodaZdefiniowane przez
  
Used by the streamProgressHandler to read a message.
StreamingConnectionHandler
Zdarzenia
 Zdarzenie Podsumowanie Zdefiniowane przez
 Inherited[zdarzenie broadcast] Wywoływane, gdy program Flash Player lub aplikacja środowiska wykonawczego AIR uzyskuje fokus w systemie operacyjnym i przechodzi w stan aktywny.EventDispatcher
 Inherited[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łe publiczne
 StałaZdefiniowane 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
Szczegół właściwości

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.

Konstruktor Szczegół

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.

Parametry
channel:Channel — The Channel that uses this class.
 
log:ILogger — Reference to the logger for the associated Channel.
Szczegół metody

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.

Zwraca
IMessage — Returns the message that was read.
Szczegół zdarzenia

status

Zdarzenie
Typ obiektu zdarzenia: flash.events.StatusEvent
wł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.

Szczegół stałej

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.





[ X ]Dlaczego język angielski?
Treść dokumentacji języka ActionScript 3.0 wyświetlana w języku angielskim

Niektóre części dokumentacji języka ActionScript 3.0 nie są przetłumaczone na poszczególne języki. Gdy element nie jest przetłumaczony na dany język, jest wyświetlany tekst angielski. Na przykład opis klasy ga.controls.HelpBox nie jest przetłumaczony na żaden dodatkowy język. Z tego powodu polska wersja dokumentacji zawiera opis klasy ga.controls.HelpBox w języku angielskim.