Class Amfphp_Core_Amf_Handler

Description

Implements interfaces:

This is the default handler for the gateway. It's job is to handle everything that is specific to Amf for the gateway.

  • author: Ariel Sommeria-Klein

Located in /Amfphp/Core/Amf/Handler.php (line 17)


	
			
Class Constant Summary
 FILTER_AMF_EXCEPTION_HANDLER = "FILTER_AMF_EXCEPTION_HANDLER"
 FILTER_AMF_REQUEST_HEADER_HANDLER = "FILTER_AMF_REQUEST_HEADER_HANDLER"
 FILTER_AMF_REQUEST_MESSAGE_HANDLER = "FILTER_AMF_REQUEST_MESSAGE_HANDLER"
Method Summary
Amfphp_Core_Amf_Handler __construct ()
void deserialize ( $getData,  $postData,  $rawPostData)
void handleDeserializedRequest ( $deserializedRequest,  $serviceRouter)
void handleException ( $exception)
void serialize ( $data)
Methods
Constructor __construct (line 54)
  • access: public
Amfphp_Core_Amf_Handler __construct ()
deserialize (line 61)
void deserialize ( $getData,  $postData,  $rawPostData)
  • array $getData
  • array $postData
  • $rawPostData
handleDeserializedRequest (line 112)
void handleDeserializedRequest ( $deserializedRequest,  $serviceRouter)
handleException (line 140)
void handleException ( $exception)
  • Exception $exception
serialize (line 168)
void serialize ( $data)
  • $data
Class Constants
FILTER_AMF_EXCEPTION_HANDLER = "FILTER_AMF_EXCEPTION_HANDLER" (line 45)

filter called for exception handling an Amf packet/message, to give a plugin the chance to handle it.

This is for the Flex Messaging plugin to be able to intercept the exception and say it wants to handle it

  • todo: consider an interface for $handler. Maybe overkill here
FILTER_AMF_REQUEST_HEADER_HANDLER = "FILTER_AMF_REQUEST_HEADER_HANDLER" (line 28)

filter called for each amf request header, to give a plugin the chance to handle it.

Unless a plugin handles them, amf headers are ignored Headers embedded in the serialized requests are regarded to be a Amf specific, so they get their filter in Amf Handler

  • todo: consider an interface for $handler. Maybe overkill here
FILTER_AMF_REQUEST_MESSAGE_HANDLER = "FILTER_AMF_REQUEST_MESSAGE_HANDLER" (line 37)

filter called for each amf request message, to give a plugin the chance to handle it.

This is for the Flex Messaging plugin to be able to intercept the message and say it wants to handle it

  • todo: consider an interface for $handler. Maybe overkill here

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