\AmfphpDummy

This catches browser requests to the gateway, to show something more helpful than an error message.

Summary

Methods
Properties
Constants
__construct()
filterHandler()
deserialize()
handleDeserializedRequest()
handleException()
serialize()
filterHeaders()
No public properties found
CONTENT_TYPE
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

CONTENT_TYPE

CONTENT_TYPE

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

Methods

__construct()

__construct(array $config)

constructor.

Parameters

array $config

optional key/value pairs in an associative array. Used to override default configuration values.

filterHandler()

filterHandler( $handler, String $contentType) : \this

if no content type, then returns this.

Parameters

$handler
String $contentType

Returns

\this —

or null

deserialize()

deserialize(array $getData, array $postData, string $rawPostData) : string

deserialize

Parameters

array $getData
array $postData
string $rawPostData

Returns

string

handleDeserializedRequest()

handleDeserializedRequest(mixed $deserializedRequest, \Amfphp_Core_Common_ServiceRouter $serviceRouter) : mixed

handle deserialized request

Parameters

mixed $deserializedRequest
\Amfphp_Core_Common_ServiceRouter $serviceRouter

Returns

mixed

handleException()

handleException(\Exception $exception) : mixed

handle exception

Parameters

\Exception $exception

Returns

mixed —

an object describing the error, that will be serialized and sent back to the client

serialize()

serialize(mixed $data) : mixed

serialize. just includes index.html

Parameters

mixed $data

Returns

mixed

filterHeaders()

filterHeaders(array $headers, string $contentType) : array

filter the headers to make sure the content type is set to text/html if the request was handled by the service browser

Parameters

array $headers
string $contentType

Returns

array