‪TYPO3CMS  9.5
TYPO3\CMS\Backend\Http\RequestHandler Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Http\RequestHandler:
TYPO3\CMS\Core\Http\RequestHandlerInterface

Public Member Functions

ResponseInterface handleRequest (ServerRequestInterface $request)
 
ResponseInterface handle (ServerRequestInterface $request)
 
bool canHandleRequest (ServerRequestInterface $request)
 
int getPriority ()
 

Detailed Description

General RequestHandler for the TYPO3 Backend. This is used for all Backend requests, including AJAX routes.

If a get/post parameter "route" is set, the Backend Routing is called and searches for a matching route inside the Router. The corresponding controller / action is called then which returns the response.

The following get/post parameters are evaluated here:

  • ‪route
  • ‪token

Definition at line 37 of file RequestHandler.php.

Member Function Documentation

◆ canHandleRequest()

bool TYPO3\CMS\Backend\Http\RequestHandler::canHandleRequest ( ServerRequestInterface  $request)

This request handler can handle any backend request.

Parameters
ServerRequestInterface$request
Returns
‪bool If the request is BE request TRUE otherwise FALSE

Implements TYPO3\CMS\Core\Http\RequestHandlerInterface.

Definition at line 87 of file RequestHandler.php.

◆ getPriority()

int TYPO3\CMS\Backend\Http\RequestHandler::getPriority ( )

Returns the priority - how eager the handler is to actually handle the request.

Returns
‪int The priority of the request handler.

Implements TYPO3\CMS\Core\Http\RequestHandlerInterface.

Definition at line 98 of file RequestHandler.php.

◆ handle()

ResponseInterface TYPO3\CMS\Backend\Http\RequestHandler::handle ( ServerRequestInterface  $request)

Handles a backend request, after finishing running middlewares Dispatch the request to the appropriate controller through the Backend Dispatcher which resolves the routing

Parameters
ServerRequestInterface$request
Returns
‪ResponseInterface

Definition at line 58 of file RequestHandler.php.

Referenced by TYPO3\CMS\Backend\Http\RequestHandler\handleRequest().

◆ handleRequest()

ResponseInterface TYPO3\CMS\Backend\Http\RequestHandler::handleRequest ( ServerRequestInterface  $request)

Handles any backend request

Parameters
ServerRequestInterface$request
Returns
‪ResponseInterface

Implements TYPO3\CMS\Core\Http\RequestHandlerInterface.

Definition at line 45 of file RequestHandler.php.

References TYPO3\CMS\Backend\Http\RequestHandler\handle().