eZPublishCommunityProject  2012.12
eZ\Publish\Core\REST\Common\Input\Dispatcher Class Reference

Input dispatcher. More...

Public Member Functions

 __construct (ParsingDispatcher $parsingDispatcher, array $handlers=array())
 Construct from optional parsers array. More...
 
 addHandler ($type, Handler $handler)
 Adds another handler for the given Content Type. More...
 
 parse (Message $message)
 Parse provided request. More...
 

Protected Attributes

 $handlers = array()
 
 $parsingDispatcher
 

Detailed Description

Input dispatcher.

Constructor & Destructor Documentation

eZ\Publish\Core\REST\Common\Input\Dispatcher::__construct ( ParsingDispatcher  $parsingDispatcher,
array  $handlers = array() 
)

Construct from optional parsers array.

Parameters
\eZ\Publish\Core\REST\Common\Input\ParsingDispatcher$parsingDispatcher
array$handlers

Member Function Documentation

eZ\Publish\Core\REST\Common\Input\Dispatcher::addHandler (   $type,
Handler  $handler 
)

Adds another handler for the given Content Type.

Parameters
string$type
\eZ\Publish\Core\REST\Common\Input\Handler$handler

Referenced by eZ\Publish\Core\REST\Common\Input\Dispatcher\__construct().

eZ\Publish\Core\REST\Common\Input\Dispatcher::parse ( Message  $message)

Parse provided request.

Parameters
\eZ\Publish\Core\REST\Common\Message$message
Returns
mixed

Member Data Documentation

eZ\Publish\Core\REST\Common\Input\Dispatcher::$handlers = array()
protected
eZ\Publish\Core\REST\Common\Input\Dispatcher::$parsingDispatcher
protected

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