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

package | Amfphp_Plugins_Dummy
author | Ariel Sommeria-Klein, Daniel Hoffmann (intermedi8.de)

### Methods

## constructor.

    __construct(array $config)

### Parameters

#### $config

`array`

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

## deserialize

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

see | \Amfphp_Core_Common_IDeserializer

### Parameters

#### $getData

`array`

#### $postData

`array`

#### $rawPostData

`string`

### Returns

`string`

## if no content type, then returns this.

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

### Parameters

#### $handler

`mixed`

null at call in gateway.

#### $contentType

`String`

### Returns

`\this`or null

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

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

### Parameters

#### $headers

`array`

#### $contentType

`string`

### Returns

`array`

## handle deserialized request

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

This should not handle exceptions, as this is done separately

see | \Amfphp_Core_Common_IDeserializedRequestHandler

### Parameters

#### $deserializedRequest

`mixed`

#### $serviceRouter

`\Amfphp_Core_Common_ServiceRouter`

### Returns

`mixed`

## handle exception

    handleException(\Exception $exception) : mixed

see | \Amfphp_Core_Common_IExceptionHandler

### 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

just includes index.html

see | \Amfphp_Core_Common_ISerializer

### Parameters

#### $data

`mixed`

### Returns

`mixed`

### Constants

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

    CONTENT_TYPE