Amf/Request/Http.php

Show: inherited
Table of Contents

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Amf  
Subpackage
Request  
Version
$Id: Http.php 24593 2012-01-05 20:35:02Z matthew $  

\Zend_Amf_Request_Http

Package: Zend\Amf\Request

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.

Parent(s)
\Zend_Amf_Request
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

Propertyprotectedarray $_bodies = array()
inherited

<p>Message bodies</p>Inherited from: \Zend_Amf_Request::$$_bodies
Default valuearray()Details
Type
array
Inherited_from
\Zend_Amf_Request::$$_bodies  
Propertyprotectedint $_clientType = 0
inherited

<p>AMF client type (AMF0, AMF3)</p> Inherited from: \Zend_Amf_Request::$$_clientType
Default value0Details
Type
int
Inherited_from
\Zend_Amf_Request::$$_clientType  
Propertyprotected\Zend_Amf_Parse_AMF0_Deserializer $_deserializer =
inherited

Inherited from: \Zend_Amf_Request::$$_deserializer
Details
Type
\Zend_Amf_Parse_AMF0_Deserializer
Inherited_from
\Zend_Amf_Request::$$_deserializer  
Propertyprotectedarray $_headers = array()
inherited

<p>Message headers</p>Inherited from: \Zend_Amf_Request::$$_headers
Default valuearray()Details
Type
array
Inherited_from
\Zend_Amf_Request::$$_headers  
Propertyprotected\Zend_Amf_Parse_InputStream $_inputStream =
inherited

Inherited from: \Zend_Amf_Request::$$_inputStream
Propertyprotectedint $_objectEncoding = 0
inherited

<p>Message encoding to use for objects in response</p>Inherited from: \Zend_Amf_Request::$$_objectEncoding
Default value0Details
Type
int
Inherited_from
\Zend_Amf_Request::$$_objectEncoding  
Propertyprotectedstring $_rawRequest =

Raw AMF request

Details
Type
string
Propertyprotectedmixed $_time =
inherited

Time of the request

Inherited from: \Zend_Amf_Request::$$_time
Details
Type
mixed
Inherited_from
\Zend_Amf_Request::$$_time  

Methods

methodpublic__construct() : void

Constructor

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.

methodpublicaddAmfBody(\Zend_Amf_Value_MessageBody $message) : \Zend_Amf_Request
inherited

Accessor to private array of message bodies.

Inherited from: \Zend_Amf_Request::addAmfBody()
Parameters
Name Type Description
$message \Zend_Amf_Value_MessageBody
Returns
Type Description
\Zend_Amf_Request
methodpublicgetAmfBodies() : array
inherited

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

Inherited from: \Zend_Amf_Request::getAmfBodies()
Returns
Type Description
array {target, response, length, content}
methodpublicgetAmfHeaders() : array
inherited

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

Inherited from: \Zend_Amf_Request::getAmfHeaders()
Returns
Type Description
array {operation, mustUnderstand, length, param}
methodpublicgetObjectEncoding() : int
inherited

Return the either 0 or 3 for respect AMF version

Inherited from: \Zend_Amf_Request::getObjectEncoding()
Returns
Type Description
int
methodpublicgetRawRequest() : string

Retrieve raw AMF Request

Returns
Type Description
string
methodpublicinitialize(string $request) : \Zend_Amf_Request
inherited

Prepare the AMF InputStream for parsing.

Inherited from: \Zend_Amf_Request::initialize()
Parameters
Name Type Description
$request string
Returns
Type Description
\Zend_Amf_Request
methodpublicreadBody() : \Zend_Amf_Value_MessageBody
inherited

Deserialize a message body from the input stream

Inherited from: \Zend_Amf_Request::readBody()
Returns
Type Description
\Zend_Amf_Value_MessageBody
methodpublicreadHeader() : \Zend_Amf_Value_MessageHeader
inherited

Deserialize a message header from the input stream.

Inherited from: \Zend_Amf_Request::readHeader()

A message header is structured as: - NAME String - MUST UNDERSTAND Boolean - LENGTH Int - DATA Object

Returns
Type Description
\Zend_Amf_Value_MessageHeader
methodpublicreadMessage( $stream) : \Zend_Amf_Request
inherited

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

Inherited from: \Zend_Amf_Request::readMessage()
Parameters
Name Type Description
$stream

Zend_Amf_Parse_InputStream

Returns
Type Description
\Zend_Amf_Request
methodpublicsetObjectEncoding(mixed $int) : \Zend_Amf_Request
inherited

Set the object response encoding

Inherited from: \Zend_Amf_Request::setObjectEncoding()
Parameters
Name Type Description
$int mixed
Returns
Type Description
\Zend_Amf_Request
Documentation was generated by phpDocumentor 2.0.0a8.