API Documentation

Amf/Request/Http.php

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-2011 Zend Technologies USA Inc. (http://www.zend.com)  
license
New BSD License  
package
Zend_Amf  
subpackage
Request  
version
$Id: Http.php 23775 2011-03-01 17:25:24Z ralph $  

\Zend_Amf_Request_Http

AMF Request object -- Request via HTTP

Extends {@link 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.

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

Properties

Propertyprotectedstring  $_rawRequest= ''

Raw AMF request

Details
Type
string

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

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

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

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

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

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

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

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

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

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 DocBlox 0.13.3.