Paket | mx.messaging.channels |
Klass | public class StreamingConnectionHandler |
Arv | StreamingConnectionHandler EventDispatcher Object |
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Egenskap | Definieras med | ||
---|---|---|---|
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 |
Metod | Definieras med | ||
---|---|---|---|
Constructor. | StreamingConnectionHandler | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registrerar ett händelseavlyssnarobjekt för ett EventDispatcher-objekt så att avlyssnaren får meddelanden om händelser. | EventDispatcher | ||
Used by the streaming channels to shut down the streaming connection. | StreamingConnectionHandler | ||
Skickar en händelse till händelseflödet. | EventDispatcher | ||
Kontrollerar om EventDispatcher-objektet har några avlyssnare registrerade för en viss typ av händelse. | EventDispatcher | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Used by the streaming channels to set up the streaming connection if
necessary and issue the open request to the server. | StreamingConnectionHandler | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Tar bort en avlyssnare från EventDispatcher-objektet. | EventDispatcher | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
Returnerar det angivna objektets primitiva värde. | Object | ||
Kontrollerar om en händelseavlyssnare är registrerad för det här EventDispatcher-objektet eller något av dess överordnade objekt för den angivna händelsetypen. | EventDispatcher |
Metod | Definieras med | ||
---|---|---|---|
Used by the streamProgressHandler to read a message. | StreamingConnectionHandler |
Händelse | Sammanfattning | Definieras med | ||
---|---|---|---|---|
[utsändningshändelse] Skickas när Flash Player eller AIR får operativsystemfokus och blir aktivt. | EventDispatcher | |||
[utsändningshändelse] Skickas när Flash Player eller AIR förlorar operativsystemfokus och blir inaktivt. | EventDispatcher | |||
Dispatched when the StreamingConnectionHandler receives a status command from the server. | StreamingConnectionHandler |
Konstant | Definieras med | ||
---|---|---|---|
DISCONNECT_CODE : String = "disconnect" [statisk]
The code for the StatusEvent dispatched by this handler when a disconnect
command is received from the server. | StreamingConnectionHandler |
channel | egenskap |
protected var channel:Channel
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
The Channel that uses this class.
chunkBuffer | egenskap |
protected var chunkBuffer:ByteArray
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | 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 | egenskap |
protected var dataBytesToRead:int = -1
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | 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 | egenskap |
protected var dataOffset:int
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | 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)
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Constructor.
Parametrarchannel:Channel — The Channel that uses this class.
| |
log:ILogger — Reference to the logger for the associated Channel.
|
closeStreamingConnection | () | metod |
public function closeStreamingConnection():void
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Used by the streaming channels to shut down the streaming connection.
openStreamingConnection | () | metod |
public function openStreamingConnection(appendToURL:String = null):void
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | 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.
Parametrar
appendToURL:String (default = null ) — The string to append such as session id to the endpoint
url while making the streaming connection request.
|
readMessage | () | metod |
protected function readMessage():IMessage
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Used by the streamProgressHandler to read a message. Default implementation returns null and subclasses must override this method.
ReturnerarIMessage — Returns the message that was read.
|
status | Händelse |
flash.events.StatusEvent
egenskap StatusEvent.type =
flash.events.StatusEvent
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Dispatched when the StreamingConnectionHandler receives a status command from the server.
DISCONNECT_CODE | Konstant |
public static const DISCONNECT_CODE:String = "disconnect"
Språkversion: | ActionScript 3.0 |
Produktversioner: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | 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, 01:40 PM Z