AMF Request object -- Request via HTTP

Extends Zend_Amf_Request to accept a request via HTTP. Request is built at construction time using a raw POST; if no data is available, the request is declared a fault.

package Zend_Amf
subpackage Request
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
inherited_from \Zend_Amf_Request

 Methods

Constructor

__construct() : void

Attempts to read from php://input to get raw POST request; if an error occurs in doing so, or if the AMF body is invalid, the request is declared a fault.

Accessor to private array of message bodies.

addAmfBody(\Zend_Amf_Value_MessageBody $message) : \Zend_Amf_Request
Inherited

Parameters

$message

\Zend_Amf_Value_MessageBody

Returns

\Zend_Amf_Request

Return an array of the body objects that were found in the amf request.

getAmfBodies() : array
Inherited

Returns

array{target, response, length, content}

Return an array of headers that were found in the amf request.

getAmfHeaders() : array
Inherited

Returns

array{operation, mustUnderstand, length, param}

Return the either 0 or 3 for respect AMF version

getObjectEncoding() : integer
Inherited

Returns

integer

Retrieve raw AMF Request

getRawRequest() : string

Returns

string

Prepare the AMF InputStream for parsing.

initialize(string $request) : \Zend_Amf_Request
Inherited

Parameters

$request

string

Returns

\Zend_Amf_Request

Deserialize a message body from the input stream

readBody() : \Zend_Amf_Value_MessageBody
Inherited

Returns

\Zend_Amf_Value_MessageBody

Deserialize a message header from the input stream.

readHeader() : \Zend_Amf_Value_MessageHeader
Inherited

A message header is structured as:

  • NAME String
  • MUST UNDERSTAND Boolean
  • LENGTH Int
  • DATA Object

Returns

\Zend_Amf_Value_MessageHeader

Takes the raw AMF input stream and converts it into valid PHP objects

readMessage(\Zend_Amf_Parse_InputStream $stream) : \Zend_Amf_Request
Inherited

Parameters

$stream

Returns

\Zend_Amf_Request

Set the object response encoding

setObjectEncoding(mixed $int) : \Zend_Amf_Request
Inherited

Parameters

$int

mixed

Returns

\Zend_Amf_Request

 Properties

 

Message bodies

$_bodies : array

Default

array()
 

AMF client type (AMF0, AMF3)

$_clientType : integer

Default

0
 

$_deserializer

$_deserializer : \Zend_Amf_Parse_AMF0_Deserializer

Default

 

Message headers

$_headers : array

Default

array()
 

$_inputStream

$_inputStream : \Zend_Amf_Parse_InputStream

Default

 

Message encoding to use for objects in response

$_objectEncoding : integer

Default

0
 

Raw AMF request

$_rawRequest : string

Default

 

Time of the request

$_time : mixed

Default