Pacchetto | mx.messaging |
Classe | public class MessageResponder |
Ereditarietà | MessageResponder Responder Object |
Versione linguaggio: | ActionScript 3.0 |
Versioni prodotto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services per Java EE 3 |
Versioni runtime: | 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.
Proprietà | Definito da | ||
---|---|---|---|
agent : MessageAgent [sola lettura]
Provides access to the MessageAgent that sent the message. | MessageResponder | ||
channel : Channel [sola lettura]
Provides access to the Channel used to send the message. | MessageResponder | ||
constructor : Object
Un riferimento all'oggetto classe o alla funzione di costruzione per una determinata istanza di oggetto. | Object | ||
message : IMessage
Provides access to the sent Message. | MessageResponder |
Metodo | Definito da | ||
---|---|---|---|
Constructs a MessageResponder to handle the response for the specified
Message for the specified MessageAgent. | MessageResponder | ||
Indica se per un oggetto è definita una proprietà specifica. | Object | ||
Indica se un'istanza della classe Object si trova nella catena di prototipi dell'oggetto specificato come parametro. | Object | ||
Indica se la proprietà specificata esiste ed è enumerabile. | Object | ||
Called by the channel that created this MessageResponder when a
response returns from the destination. | MessageResponder | ||
Imposta la disponibilità di una proprietà dinamica per le operazioni cicliche. | Object | ||
Called by the channel that created this MessageResponder when a fault
response returns from the destination. | MessageResponder | ||
Restituisce la rappresentazione in formato stringa di questo oggetto, formattato in base alle convenzioni specifiche per le versioni localizzate. | Object | ||
Restituisce la rappresentazione in formato stringa dell'oggetto specificato. | Object | ||
Restituisce il valore di base dell'oggetto specificato. | Object |
Metodo | Definito da | ||
---|---|---|---|
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 | proprietà |
agent:MessageAgent
[sola lettura] Versione linguaggio: | ActionScript 3.0 |
Versioni prodotto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services per Java EE 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
Provides access to the MessageAgent that sent the message.
Implementazione
public function get agent():MessageAgent
channel | proprietà |
channel:Channel
[sola lettura] Versione linguaggio: | ActionScript 3.0 |
Versioni prodotto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services per Java EE 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
Provides access to the Channel used to send the message.
Implementazione
public function get channel():Channel
message | proprietà |
message:IMessage
Versione linguaggio: | ActionScript 3.0 |
Versioni prodotto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services per Java EE 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
Provides access to the sent Message.
Implementazione
public function get message():IMessage
public function set message(value:IMessage):void
MessageResponder | () | Funzione di costruzione |
public function MessageResponder(agent:MessageAgent, message:IMessage, channel:Channel = null)
Versione linguaggio: | ActionScript 3.0 |
Versioni prodotto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services per Java EE 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
Constructs a MessageResponder to handle the response for the specified Message for the specified MessageAgent.
Parametriagent:MessageAgent — The MessageAgent sending the Message.
| |
message:IMessage — The Message being sent.
| |
channel:Channel (default = null ) — The Channel used to send.
|
createRequestTimeoutErrorMessage | () | metodo |
protected function createRequestTimeoutErrorMessage():ErrorMessage
Versione linguaggio: | ActionScript 3.0 |
Versioni prodotto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services per Java EE 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
Constructs an ErrorMessage that can be passed to the associated MessageAgent's callbacks upon a request timeout.
RestituisceErrorMessage — Returns an ErrorMessage that can be passed to the associated
MessageAgent's callbacks upon a request timeout.
|
requestTimedOut | () | metodo |
protected function requestTimedOut():void
Versione linguaggio: | ActionScript 3.0 |
Versioni prodotto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services per Java EE 3 |
Versioni runtime: | 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 | () | metodo |
public final function result(message:IMessage):void
Versione linguaggio: | ActionScript 3.0 |
Versioni prodotto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services per Java EE 3 |
Versioni runtime: | 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.
Parametri
message:IMessage — The result Message returned by the destination.
|
resultHandler | () | metodo |
protected function resultHandler(message:IMessage):void
Versione linguaggio: | ActionScript 3.0 |
Versioni prodotto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services per Java EE 3 |
Versioni runtime: | 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.
Parametri
message:IMessage — The result Message returned by the destination.
|
status | () | metodo |
public final function status(message:IMessage):void
Versione linguaggio: | ActionScript 3.0 |
Versioni prodotto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services per Java EE 3 |
Versioni runtime: | 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.
Parametri
message:IMessage — The fault Message returned by the destination.
|
statusHandler | () | metodo |
protected function statusHandler(message:IMessage):void
Versione linguaggio: | ActionScript 3.0 |
Versioni prodotto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services per Java EE 3 |
Versioni runtime: | 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.
Parametri
message:IMessage — The fault Message returned by the destination.
|
Tue Jun 12 2018, 02:44 PM Z