Amf/Request/Http.php

Show: PublicProtectedPrivateinherited
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 license@zend.com 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

>VPropertyprotectedarray $_bodies = array()
inherited

Message bodies

Inherited from: \Zend_Amf_Request::$$_bodies
Default valuearray()Details
Type
array
Inherited_from
\Zend_Amf_Request::$$_bodies  
>VPropertyprotectedint $_clientType = 0
inherited

AMF client type (AMF0, AMF3)

Inherited from: \Zend_Amf_Request::$$_clientType
Default value0Details
Type
int
Inherited_from
\Zend_Amf_Request::$$_clientType  
>VPropertyprotected\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  
>VPropertyprotectedarray $_headers = array()
inherited

Message headers

Inherited from: \Zend_Amf_Request::$$_headers
Default valuearray()Details
Type
array
Inherited_from
\Zend_Amf_Request::$$_headers  
>VPropertyprotected\Zend_Amf_Parse_InputStream $_inputStream
inherited
Inherited from: \Zend_Amf_Request::$$_inputStream
>VPropertyprotectedint $_objectEncoding = 0
inherited

Message encoding to use for objects in response

Inherited from: \Zend_Amf_Request::$$_objectEncoding
Default value0Details
Type
int
Inherited_from
\Zend_Amf_Request::$$_objectEncoding  
>VPropertyprotectedstring $_rawRequest
Raw AMF request
Details
Type
string
>VPropertyprotectedmixed $_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
NameTypeDescription
$message\Zend_Amf_Value_MessageBody
Returns
TypeDescription
\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
TypeDescription
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
TypeDescription
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
TypeDescription
int
methodpublicgetRawRequest() : string

Retrieve raw AMF Request

Returns
TypeDescription
string
methodpublicinitialize(string $request) : \Zend_Amf_Request
inherited

Prepare the AMF InputStream for parsing.

Inherited from: \Zend_Amf_Request::initialize()
Parameters
NameTypeDescription
$requeststring
Returns
TypeDescription
\Zend_Amf_Request
methodpublicreadBody() : \Zend_Amf_Value_MessageBody
inherited

Deserialize a message body from the input stream

Inherited from: \Zend_Amf_Request::readBody()
Returns
TypeDescription
\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
TypeDescription
\Zend_Amf_Value_MessageHeader
methodpublicreadMessage(\Zend_Amf_Parse_InputStream $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
NameTypeDescription
$stream\Zend_Amf_Parse_InputStream
Returns
TypeDescription
\Zend_Amf_Request
methodpublicsetObjectEncoding(mixed $int) : \Zend_Amf_Request
inherited

Set the object response encoding

Inherited from: \Zend_Amf_Request::setObjectEncoding()
Parameters
NameTypeDescription
$intmixed
Returns
TypeDescription
\Zend_Amf_Request
Documentation was generated by phpDocumentor 2.0.0a12.