Amf/Request/Http.php
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
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


array $_bodies = array()
array()
Details- Type
- array
- Inherited_from
- \Zend_Amf_Request::$$_bodies


\Zend_Amf_Parse_AMF0_Deserializer $_deserializer
- Type
- \Zend_Amf_Parse_AMF0_Deserializer
- Inherited_from
- \Zend_Amf_Request::$$_deserializer


array $_headers = array()
array()
Details- Type
- array
- Inherited_from
- \Zend_Amf_Request::$$_headers


\Zend_Amf_Parse_InputStream $_inputStream
- Type
- \Zend_Amf_Parse_InputStream
- Inherited_from
- \Zend_Amf_Request::$$_inputStream


int $_objectEncoding = 0
Message encoding to use for objects in response
0
Details- Type
- int
- Inherited_from
- \Zend_Amf_Request::$$_objectEncoding
Methods


__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.


addAmfBody(\Zend_Amf_Value_MessageBody $message) : \Zend_Amf_Request
Accessor to private array of message bodies.
Inherited from: \Zend_Amf_Request::addAmfBody()Name | Type | Description |
---|---|---|
$message | \Zend_Amf_Value_MessageBody |
Type | Description |
---|---|
\Zend_Amf_Request |


getAmfBodies() : array
Return an array of the body objects that were found in the amf request.
Inherited from: \Zend_Amf_Request::getAmfBodies()Type | Description |
---|---|
array | {target, response, length, content} |


getAmfHeaders() : array
Return an array of headers that were found in the amf request.
Inherited from: \Zend_Amf_Request::getAmfHeaders()Type | Description |
---|---|
array | {operation, mustUnderstand, length, param} |


getObjectEncoding() : int
Return the either 0 or 3 for respect AMF version
Inherited from: \Zend_Amf_Request::getObjectEncoding()Type | Description |
---|---|
int |


initialize(string $request) : \Zend_Amf_Request
Name | Type | Description |
---|---|---|
$request | string |
Type | Description |
---|---|
\Zend_Amf_Request |


readBody() : \Zend_Amf_Value_MessageBody
Deserialize a message body from the input stream
Inherited from: \Zend_Amf_Request::readBody()Type | Description |
---|---|
\Zend_Amf_Value_MessageBody |


readHeader() : \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
Type | Description |
---|---|
\Zend_Amf_Value_MessageHeader |


readMessage(\Zend_Amf_Parse_InputStream $stream) : \Zend_Amf_Request
Takes the raw AMF input stream and converts it into valid PHP objects
Inherited from: \Zend_Amf_Request::readMessage()Name | Type | Description |
---|---|---|
$stream | \Zend_Amf_Parse_InputStream |
Type | Description |
---|---|
\Zend_Amf_Request |


setObjectEncoding(mixed $int) : \Zend_Amf_Request
Name | Type | Description |
---|---|---|
$int | mixed |
Type | Description |
---|---|
\Zend_Amf_Request |