套件 | mx.messaging |
類別 | public class MessageResponder |
繼承 | MessageResponder Responder Object |
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | 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.
屬性 | 定義自 | ||
---|---|---|---|
agent : MessageAgent [唯讀]
Provides access to the MessageAgent that sent the message. | MessageResponder | ||
channel : Channel [唯讀]
Provides access to the Channel used to send the message. | MessageResponder | ||
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
message : IMessage
Provides access to the sent Message. | MessageResponder |
方法 | 定義自 | ||
---|---|---|---|
Constructs a MessageResponder to handle the response for the specified
Message for the specified MessageAgent. | MessageResponder | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
Called by the channel that created this MessageResponder when a
response returns from the destination. | MessageResponder | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
Called by the channel that created this MessageResponder when a fault
response returns from the destination. | MessageResponder | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
方法 | 定義自 | ||
---|---|---|---|
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 | 屬性 |
agent:MessageAgent
[唯讀] 語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Provides access to the MessageAgent that sent the message.
實作
public function get agent():MessageAgent
channel | 屬性 |
message | 屬性 |
MessageResponder | () | 建構函式 |
public function MessageResponder(agent:MessageAgent, message:IMessage, channel:Channel = null)
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Constructs a MessageResponder to handle the response for the specified Message for the specified MessageAgent.
參數agent:MessageAgent — The MessageAgent sending the Message.
| |
message:IMessage — The Message being sent.
| |
channel:Channel (default = null ) — The Channel used to send.
|
createRequestTimeoutErrorMessage | () | 方法 |
protected function createRequestTimeoutErrorMessage():ErrorMessage
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Constructs an ErrorMessage that can be passed to the associated MessageAgent's callbacks upon a request timeout.
傳回值ErrorMessage — Returns an ErrorMessage that can be passed to the associated
MessageAgent's callbacks upon a request timeout.
|
requestTimedOut | () | 方法 |
protected function requestTimedOut():void
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | 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 | () | 方法 |
public final function result(message:IMessage):void
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | 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.
參數
message:IMessage — The result Message returned by the destination.
|
resultHandler | () | 方法 |
protected function resultHandler(message:IMessage):void
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | 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.
參數
message:IMessage — The result Message returned by the destination.
|
status | () | 方法 |
public final function status(message:IMessage):void
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | 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.
參數
message:IMessage — The fault Message returned by the destination.
|
statusHandler | () | 方法 |
protected function statusHandler(message:IMessage):void
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | 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.
參數
message:IMessage — The fault Message returned by the destination.
|
Tue Jun 12 2018, 03:47 PM Z