| Pakiet | mx.messaging |
| Klasa | public class MessageResponder |
| Dziedziczenie | MessageResponder Responder 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 |
result() or status() callback
on the MessageResponder. MessageResponder subclasses should override these
methods to perform any necessary processing. For every response, whether a
successful result or an error, the MessageResponder should invoke
acknowledge() on its agent. If the response was a fault, the
MessageResponder should also invoke fault() on its agent.
| Właściwość | Zdefiniowane przez | ||
|---|---|---|---|
| agent : MessageAgent [tylko do odczytu]
Provides access to the MessageAgent that sent the message. | MessageResponder | ||
| channel : Channel [tylko do odczytu]
Provides access to the Channel used to send the message. | MessageResponder | ||
![]() | constructor : Object
Odwołanie do obiektu klasy lub funkcji konstruktora, dotyczące danej instancji obiektu. | Object | |
| message : IMessage
Provides access to the sent Message. | MessageResponder | ||
| Metoda | Zdefiniowane przez | ||
|---|---|---|---|
Constructs a MessageResponder to handle the response for the specified
Message for the specified MessageAgent. | MessageResponder | ||
![]() |
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 | |
![]() |
Wskazuje, czy określona właściwość istnieje i jest przeliczalna. | Object | |
Called by the channel that created this MessageResponder when a
response returns from the destination. | MessageResponder | ||
![]() |
Ustawia dostępność właściwości dynamicznej używanej w pętlach. | Object | |
Called by the channel that created this MessageResponder when a fault
response returns from the destination. | MessageResponder | ||
![]() |
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 | |
| Metoda | Zdefiniowane przez | ||
|---|---|---|---|
Constructs an ErrorMessage that can be passed to the associated
MessageAgent's callbacks upon a request timeout. | MessageResponder | ||
Subclasses must override this method to handle a request timeout and
invoke the proper callbacks on the associated MessageAgent. | MessageResponder | ||
Subclasses must override this method to perform custom processing of
the result and invoke the proper callbacks on the associated
MessageAgent. | MessageResponder | ||
Subclasses must override this method to perform custom processing of
the status and invoke the proper callbacks on the associated
MessageAgent. | MessageResponder | ||
agent | właściwość |
agent:MessageAgent [tylko do odczytu] | 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 |
Provides access to the MessageAgent that sent the message.
Implementacja
public function get agent():MessageAgentchannel | właściwość |
channel:Channel [tylko do odczytu] | 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 |
Provides access to the Channel used to send the message.
Implementacja
public function get channel():Channelmessage | właściwość |
message: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 |
Provides access to the sent Message.
Implementacja
public function get message():IMessage public function set message(value:IMessage):voidMessageResponder | () | Konstruktor |
public function MessageResponder(agent:MessageAgent, message:IMessage, channel:Channel = null)| 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 |
Constructs a MessageResponder to handle the response for the specified Message for the specified MessageAgent.
Parametryagent:MessageAgent — The MessageAgent sending the Message.
| |
message:IMessage — The Message being sent.
| |
channel:Channel (default = null) — The Channel used to send.
|
createRequestTimeoutErrorMessage | () | metoda |
protected function createRequestTimeoutErrorMessage():ErrorMessage| 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 |
Constructs an ErrorMessage that can be passed to the associated MessageAgent's callbacks upon a request timeout.
ZwracaErrorMessage — Returns an ErrorMessage that can be passed to the associated
MessageAgent's callbacks upon a request timeout.
|
requestTimedOut | () | metoda |
protected function requestTimedOut():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 |
Subclasses must override this method to handle a request timeout and invoke the proper callbacks on the associated MessageAgent.
result | () | metoda |
public final function result(message:IMessage):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 |
Called by the channel that created this MessageResponder when a
response returns from the destination.
This method performs core result processing and then invokes the
resultHandler() method that subclasses may override to
perform any necessary custom processing.
Parametry
message:IMessage — The result Message returned by the destination.
|
resultHandler | () | metoda |
protected function resultHandler(message:IMessage):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 |
Subclasses must override this method to perform custom processing of the result and invoke the proper callbacks on the associated MessageAgent.
Parametry
message:IMessage — The result Message returned by the destination.
|
status | () | metoda |
public final function status(message:IMessage):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 |
Called by the channel that created this MessageResponder when a fault
response returns from the destination.
This method performs core result processing and then invokes the
statusHandler() method that subclasses may override to
perform any necessary custom processing.
Parametry
message:IMessage — The fault Message returned by the destination.
|
statusHandler | () | metoda |
protected function statusHandler(message:IMessage):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 |
Subclasses must override this method to perform custom processing of the status and invoke the proper callbacks on the associated MessageAgent.
Parametry
message:IMessage — The fault Message returned by the destination.
|
Tue Jun 12 2018, 12:06 PM Z
Ukryj dziedziczone właściwości publiczne
Pokaż dziedziczone właściwości publiczne