Class AmfphpFlexMessaging

Description

Support for flex messaging.

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. In case of an error, an ErrorMessage is expected

  • author: Ariel Sommeria-Klein

Located in /Amfphp/Plugins/AmfphpFlexMessaging/AmfphpFlexMessaging.php (line 26)


	
			
Class Constant Summary
 FIELD_MESSAGE_ID = "messageId"
 FLEX_TYPE_ACKNOWLEDGE_MESSAGE = 'flex.messaging.messages.AcknowledgeMessage'
 FLEX_TYPE_COMMAND_MESSAGE = 'flex.messaging.messages.CommandMessage'
 FLEX_TYPE_ERROR_MESSAGE = 'flex.messaging.messages.ErrorMessage'
 FLEX_TYPE_REMOTING_MESSAGE = 'flex.messaging.messages.RemotingMessage'
Method Summary
AmfphpFlexMessaging __construct ([ $config = null])
array filterAmfExceptionHandler ( $handler, Object $handler.)
array filterAmfRequestMessageHandler ( $handler,  $requestMessage, Object $handler.)
Amfphp_Core_Amf_Message handleRequestMessage ( $requestMessage,  $serviceRouter)
Methods
Constructor __construct (line 56)

constructor.

  • access: public
AmfphpFlexMessaging __construct ([ $config = null])
  • array $config: optional key/value pairs in an associative array. Used to override default configuration values.
filterAmfExceptionHandler (line 99)
  • access: public
array filterAmfExceptionHandler ( $handler, Object $handler.)
  • Object $handler.: 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.
  • $handler
filterAmfRequestMessageHandler (line 69)
  • access: public
array filterAmfRequestMessageHandler ( $handler,  $requestMessage, Object $handler.)
  • Object $handler.: 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.
  • Amfphp_Core_Amf_Message $requestMessage: the request message
  • $handler
generateErrorResponse (line 144)

flex expects error messages formatted in a special way, using the ErrorMessage object.

  • access: public
Amfphp_Core_Amf_Packet generateErrorResponse ( $exception)
  • Exception $exception
handleRequestMessage (line 111)

handle the request message instead of letting the Amf Handler do it.

  • access: public
Amfphp_Core_Amf_Message handleRequestMessage ( $requestMessage,  $serviceRouter)
Class Constants
FIELD_MESSAGE_ID = "messageId" (line 32)
FLEX_TYPE_ACKNOWLEDGE_MESSAGE = 'flex.messaging.messages.AcknowledgeMessage' (line 29)
FLEX_TYPE_COMMAND_MESSAGE = 'flex.messaging.messages.CommandMessage' (line 27)
FLEX_TYPE_ERROR_MESSAGE = 'flex.messaging.messages.ErrorMessage' (line 30)
FLEX_TYPE_REMOTING_MESSAGE = 'flex.messaging.messages.RemotingMessage' (line 28)

Documentation generated on Thu, 24 Mar 2011 16:55:38 +0100 by phpDocumentor 1.4.3