eZPublishCommunityProject(LegacyStack)  2013.5
ezpRestHttpRequestParser Class Reference

Custom request parser which creates instances of ezpRestRequest. More...

+ Inheritance diagram for ezpRestHttpRequestParser:
+ Collaboration diagram for ezpRestHttpRequestParser:

Protected Member Functions

 createRequestObject ()
 Overload createRequestObject() to make sure ezpRestRequest is created. More...
 
 fillContentVariables ()
 Extract variables related to content from GET. More...
 
 fillVariables ()
 Extract variables to be used internally from GET. More...
 
 processBody ()
 Overloads processBody() to add support for body on DELETE in addition to PUT. More...
 
 processDate ()
 Processes the request date. More...
 
 processEncryption ()
 Sets the isEncrypted flag if HTTPS is on. More...
 
 processProtocol ()
 Processes the request protocol. More...
 
 processStandardHeaders ()
 Overloads parent::processStandardHeaders() to also call processEncryption() More...
 
 processVariables ()
 Overloads processVariables() to instead get ezpRest specific variables. More...
 

Protected Attributes

 $request
 

Detailed Description

Custom request parser which creates instances of ezpRestRequest.

The main difference is that GET and POST data is protected from potential cookie pollution. And each category of variable has its own silo, to prevent one from overwriting another.

Member Function Documentation

ezpRestHttpRequestParser::createRequestObject ( )
protected

Overload createRequestObject() to make sure ezpRestRequest is created.

Returns
ezpRestRequest
ezpRestHttpRequestParser::fillContentVariables ( )
protected

Extract variables related to content from GET.

Returns
array

Referenced by processVariables().

ezpRestHttpRequestParser::fillVariables ( )
protected

Extract variables to be used internally from GET.

Returns
array

Referenced by processVariables().

ezpRestHttpRequestParser::processBody ( )
protected

Overloads processBody() to add support for body on DELETE in addition to PUT.

ezpRestHttpRequestParser::processDate ( )
protected

Processes the request date.

See Also
http://issues.ez.no/19027
ezpRestHttpRequestParser::processEncryption ( )
protected

Sets the isEncrypted flag if HTTPS is on.

Returns
void

Referenced by processStandardHeaders().

ezpRestHttpRequestParser::processProtocol ( )
protected

Processes the request protocol.

ezpRestHttpRequestParser::processStandardHeaders ( )
protected

Overloads parent::processStandardHeaders() to also call processEncryption()

Returns
void
ezpRestHttpRequestParser::processVariables ( )
protected

Overloads processVariables() to instead get ezpRest specific variables.

Note: ->variables is set with ezpRest specific variables instead of raw $_REQUEST.

Returns
void

Member Data Documentation

ezpRestHttpRequestParser::$request
protected

Referenced by processProtocol().


The documentation for this class was generated from the following file: