TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
RequestHandlerInterface Interface Reference
Inheritance diagram for RequestHandlerInterface:
AjaxRequestHandler BackendModuleRequestHandler RequestHandler EidRequestHandler RequestHandler RequestHandler

Public Member Functions

 handleRequest (\Psr\Http\Message\ServerRequestInterface $request)
 
 canHandleRequest (\Psr\Http\Message\ServerRequestInterface $request)
 
 getPriority ()
 

Detailed Description

The interface for a request handler see RequestHandler in EXT:backend/Classes/Http/ and EXT:frontend/Classes/Http

Definition at line 23 of file core/Classes/Http/RequestHandlerInterface.php.

Member Function Documentation

canHandleRequest ( \Psr\Http\Message\ServerRequestInterface  $request)

Checks if the request handler can handle the given request.

Parameters
\Psr\Http\Message\ServerRequestInterface$request
Returns
bool TRUE if it can handle the request, otherwise FALSE
getPriority ( )

Returns the priority - how eager the handler is to actually handle the request. An integer > 0 means "I want to handle this request" where "100" is default. "0" means "I am a fallback solution".

Returns
int The priority of the request handler

Implemented in RequestHandler, BackendModuleRequestHandler, RequestHandler, AjaxRequestHandler, EidRequestHandler, and RequestHandler.

handleRequest ( \Psr\Http\Message\ServerRequestInterface  $request)

Handles a raw request

Parameters
\Psr\Http\Message\ServerRequestInterface$request
Returns
NULL|