Class AmfphpQuickServiceDebug

Description

Implements interfaces:

A simple service browser with html only. Sometimes you don't need the full thing with AMF etc., so use this This plugin should not be deployed on a production server.

call the gateway with the following GET parameters: serviceName: the service name methodName : the method to call on the service

pass the parameters as POST data. Each will be JSON decoded to be able to pass complex parameters. This requires PHP 5.2 or higher

if all goes well, the return value will be output. If there is an exception thrown in the plugin because something is missing in the GET and POST data, some useful information and links should be displayed. If there is an exception elsewhere in the code, either in the service object itself or in the rest of amfphp, information about the exception will be shown.

  • author: Ariel Sommeria-Klein

Located in /Amfphp/Plugins/AmfphpQuickServiceDebug/AmfphpQuickServiceDebug.php (line 33)


	
			
Class Constant Summary
 CONTENT_TYPE = "application/x-www-form-urlencoded"
Method Summary
AmfphpQuickServiceDebug __construct ([ $config = null])
void deserialize ( $getData,  $postData,  $rawPostData)
this filterHandler (mixed $handler, String $contentType)
void handleDeserializedRequest ( $deserializedRequest,  $serviceRouter)
void handleException ( $exception)
void serialize ( $data)
Methods
Constructor __construct (line 44)

constructor.

  • access: public
AmfphpQuickServiceDebug __construct ([ $config = null])
  • array $config: optional key/value pairs in an associative array. Used to override default configuration values.
deserialize (line 67)
void deserialize ( $getData,  $postData,  $rawPostData)
  • array $getData
  • array $postData
  • $rawPostData
filterHandler (line 58)

if no content type, then returns this.

  • return: or null
  • access: public
this filterHandler (mixed $handler, String $contentType)
  • String $contentType
  • mixed $handler: null at call in gateway.
handleDeserializedRequest (line 178)
void handleDeserializedRequest ( $deserializedRequest,  $serviceRouter)
handleException (line 216)
void handleException ( $exception)
  • Exception $exception
serialize (line 237)
void serialize ( $data)
  • $data
Class Constants
CONTENT_TYPE = "application/x-www-form-urlencoded" (line 38)

if content type is not set or content is set to "application/x-www-form-urlencoded", this plugin will handle the request

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