The MessageResponder class handles a successful result or fault from a message
destination. For each message that a Channel sends, the Channel creates a
MessageResponder to handle the result. Upon a response, the Channel will
invoke either the 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.
channel:Channel (default = null) — The Channel used to send.
Method Detail
createRequestTimeoutErrorMessage
()
method
protected function createRequestTimeoutErrorMessage():ErrorMessage
Language Version :
ActionScript 3.0
Product Versions :
BlazeDS 4, LCDS 3
Runtime Versions :
Flash Player 9, AIR 1.1
Constructs an ErrorMessage that can be passed to the associated
MessageAgent's callbacks upon a request timeout.
Returns
ErrorMessage — Returns an ErrorMessage that can be passed to the associated
MessageAgent's callbacks upon a request timeout.
requestTimedOut
()
method
protected function requestTimedOut():void
Language Version :
ActionScript 3.0
Product Versions :
BlazeDS 4, LCDS 3
Runtime Versions :
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
()
method
public final function result(message:IMessage):void
Language Version :
ActionScript 3.0
Product Versions :
BlazeDS 4, LCDS 3
Runtime Versions :
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.
Parameters
message:IMessage — The result Message returned by the destination.
resultHandler
()
method
protected function resultHandler(message:IMessage):void
Language Version :
ActionScript 3.0
Product Versions :
BlazeDS 4, LCDS 3
Runtime Versions :
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.
Parameters
message:IMessage — The result Message returned by the destination.
status
()
method
public final function status(message:IMessage):void
Language Version :
ActionScript 3.0
Product Versions :
BlazeDS 4, LCDS 3
Runtime Versions :
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.
Parameters
message:IMessage — The fault Message returned by the destination.
statusHandler
()
method
protected function statusHandler(message:IMessage):void
Language Version :
ActionScript 3.0
Product Versions :
BlazeDS 4, LCDS 3
Runtime Versions :
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.
Parameters
message:IMessage — The fault Message returned by the destination.