Support for flex messaging.
This plugin can be deactivated if the project doesn't need flex messaging, usually a RemoteObject in Flex.
Flex doesn't use the basic packet system. When using a remote objct, first a CommandMessage is sent, expecting an AcknowledgeMessage in return. Then a RemotingMessage is sent, expecting an AcknowledgeMessage in return. This plugin adds support for this message flow.
In case of an error, an ErrorMessage is expected
link | http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_4.html |
---|---|
package | Amfphp_Plugins_FlexMessaging |
author | Ariel Sommeria-Klein |
__construct(array $config)
array
optional key/value pairs in an associative array. Used to override default configuration values.
filterAmfExceptionHandler(Object $handler) : array
Object
null at call. If the plugin takes over the handling of the request message, it must set this to a proper handler for the message, probably itself.
array
filterAmfRequestMessageHandler(Object $handler, \Amfphp_Core_Amf_Message $requestMessage) : array
Object
null at call. If the plugin takes over the handling of the request message, it must set this to a proper handler for the message, probably itself.
array
generateErrorResponse(\Exception $exception) : \Amfphp_Core_Amf_Packet
handleRequestMessage(\Amfphp_Core_Amf_Message $requestMessage, \Amfphp_Core_Common_ServiceRouter $serviceRouter) : \Amfphp_Core_Amf_Message
\Amfphp_Core_Amf_Message
\Amfphp_Core_Common_ServiceRouter
$clientUsesFlexMessaging : Boolean
$lastFlexMessageId : String
Used for error generation
$lastFlexMessageResponseUri : String
Used for error generation
$returnErrorDetails : boolean
FIELD_MESSAGE_ID
FLEX_TYPE_ACKNOWLEDGE_MESSAGE
FLEX_TYPE_COMMAND_MESSAGE
FLEX_TYPE_ERROR_MESSAGE
FLEX_TYPE_REMOTING_MESSAGE