‪TYPO3CMS  11.5
TYPO3\CMS\Extbase\Mvc\RequestHandlerInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Extbase\Mvc\RequestHandlerInterface:
TYPO3\CMS\Extbase\Mvc\Web\FrontendRequestHandler

Public Member Functions

ResponseInterface handleRequest (RequestInterface $request)
 
bool canHandleRequest (RequestInterface $request)
 
int getPriority ()
 

Detailed Description

The interface for a request handler

Definition at line 23 of file RequestHandlerInterface.php.

Member Function Documentation

◆ canHandleRequest()

bool TYPO3\CMS\Extbase\Mvc\RequestHandlerInterface::canHandleRequest ( RequestInterface  $request)

Checks if the request handler can handle the current request.

Parameters
RequestInterface$request
Returns
‪bool TRUE if it can handle the request, otherwise FALSE

Implemented in TYPO3\CMS\Extbase\Mvc\Web\FrontendRequestHandler.

◆ getPriority()

int TYPO3\CMS\Extbase\Mvc\RequestHandlerInterface::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 TYPO3\CMS\Extbase\Mvc\Web\FrontendRequestHandler.

◆ handleRequest()

ResponseInterface TYPO3\CMS\Extbase\Mvc\RequestHandlerInterface::handleRequest ( RequestInterface  $request)

Handles a raw request and returns the response.

Parameters
RequestInterface$request
Returns
‪ResponseInterface

Implemented in TYPO3\CMS\Extbase\Mvc\Web\FrontendRequestHandler.