Class Amfphp_Core_Gateway

Description

where everything comes together in amfphp.

The class used for the entry point of a remoting call

  • author: Ariel Sommeria-klein

Located in /Amfphp/Core/Gateway.php (line 20)


	
			
Class Constant Summary
 FILTER_DESERIALIZED_REQUEST = "FILTER_DESERIALIZED_REQUEST"
 FILTER_DESERIALIZED_REQUEST_HANDLER = "FILTER_DESERIALIZED_REQUEST_HANDLER"
 FILTER_DESERIALIZED_RESPONSE = "FILTER_DESERIALIZED_RESPONSE"
 FILTER_DESERIALIZER = "FILTER_DESERIALIZER"
 FILTER_EXCEPTION_HANDLER = "FILTER_EXCEPTION_HANDLER"
 FILTER_SERIALIZED_REQUEST = "FILTER_SERIALIZED_REQUEST"
 FILTER_SERIALIZED_RESPONSE = "FILTER_SERIALIZED_RESPONSE"
 FILTER_SERIALIZER = "FILTER_SERIALIZER"
Method Summary
Amfphp_Core_Gateway __construct ( $getData,  $postData, String $rawInputData, String $contentType, [Amfphp_Core_Config $config = null])
service ()
Methods
Constructor __construct (line 121)

constructor

  • access: public
Amfphp_Core_Gateway __construct ( $getData,  $postData, String $rawInputData, String $contentType, [Amfphp_Core_Config $config = null])
  • array $getData: typically the $_GET array.
  • array $postData: typically the $_POST array.
  • String $rawInputData
  • String $contentType
  • Amfphp_Core_Config $config: optional. The default config object will be used if null
getResponseHeaders (line 197)

get the response headers. This might be expanded for stuff like gzip, etc. For now just a content type

  • access: public
array getResponseHeaders ()
service (line 141)

The service method runs the gateway application. It deserializes the raw data passed into the constructor as an Amfphp_Core_Amf_Packet, handles the headers, handles the messages as requests to services, and returns the responses from the services It does not however handle output headers, gzip compression, etc. that is the job of the calling script

  • return: the serialized amf packet containg the service responses
  • access: public
service ()
Class Constants
FILTER_DESERIALIZED_REQUEST = "FILTER_DESERIALIZED_REQUEST" (line 41)

filter called after the request is deserialized. The callee can modify the data and return it.

FILTER_DESERIALIZED_REQUEST_HANDLER = "FILTER_DESERIALIZED_REQUEST_HANDLER" (line 49)

filter called to allow a plugin to override the default amf deserialized request handler.

Plugin should return a Amfphp_Core_Common_IDeserializedRequestHandler if it recognizes the request

FILTER_DESERIALIZED_RESPONSE = "FILTER_DESERIALIZED_RESPONSE" (line 55)

filter called when the response is ready but not yet serialized. The callee can modify the data and return it.

FILTER_DESERIALIZER = "FILTER_DESERIALIZER" (line 35)

filter called to allow a plugin to override the default amf deserializer.

Plugin should return a Amfphp_Core_Common_IDeserializer if it recognizes the content type

FILTER_EXCEPTION_HANDLER = "FILTER_EXCEPTION_HANDLER" (line 64)

filter called to allow a plugin to override the default amf exception handler.

If the plugin takes over the handling of the request message, it must set this to a proper Amfphp_Core_Common_IExceptionHandler

FILTER_SERIALIZED_REQUEST = "FILTER_SERIALIZED_REQUEST" (line 27)

filter called when the serialized request comes in.

  • todo: this filter only allows manipulation of raw post data, and is as such a bit misleading. Maybe rename and do filters for GET and POST
FILTER_SERIALIZED_RESPONSE = "FILTER_SERIALIZED_RESPONSE" (line 78)

filter called when the packet response is ready and serialized.

FILTER_SERIALIZER = "FILTER_SERIALIZER" (line 72)

filter called to allow a plugin to override the default amf serializer.

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