\Zend_Amf_Request
Handle the incoming AMF request by deserializing the data to php object types and storing the data for Zend_Amf_Server to handle for processing.
- Copyright: Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
- License: http://framework.zend.com/license/new-bsd New BSD License
Synopsis
class Zend_Amf_Request
{
- // members
- protected integer $_clientType = 0;
- protected array $_bodies = ;
- protected array $_headers = ;
- protected integer $_objectEncoding = 0;
- protected Zend_Amf_Parse_InputStream $_inputStream;
- protected Zend_Amf_Parse_AMF0_Deserializer $_deserializer;
- protected $_time;
- // methods
- public Zend_Amf_Request initialize()
- public Zend_Amf_Request readMessage()
- public Zend_Amf_Value_MessageHeader readHeader()
- public Zend_Amf_Value_MessageBody readBody()
- public array getAmfBodies()
- public Zend_Amf_Request addAmfBody()
- public array getAmfHeaders()
- public int getObjectEncoding()
- public Zend_Amf_Request setObjectEncoding()
Tasks
Line | Task |
---|---|
46+ | Currently not checking if the object needs to be Type Mapped to a server object. |
Members
protected
- $_bodies — array
- $_clientType — int
- $_deserializer — Zend_Amf_Parse_AMF0_Deserializer
- $_headers — array
- $_inputStream — Zend_Amf_Parse_InputStream
- $_objectEncoding — int
- $_time
—
mixed
Time of the request
Methods
public
- addAmfBody() — Accessor to private array of message bodies.
- getAmfBodies() — Return an array of the body objects that were found in the amf request.
- getAmfHeaders() — Return an array of headers that were found in the amf request.
- getObjectEncoding() — Return the either 0 or 3 for respect AMF version
- initialize() — Prepare the AMF InputStream for parsing.
- readBody() — Deserialize a message body from the input stream
- readHeader() — Deserialize a message header from the input stream.
- readMessage() — Takes the raw AMF input stream and converts it into valid PHP objects
- setObjectEncoding() — Set the object response encoding