cdddae390b09af1602afd3fee9da3ef858a4904a
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Core / RequestHandlerInterface.php
1 <?php
2 namespace TYPO3\CMS\Core\Core;
3
4 /*
5 * This file is part of the TYPO3 CMS project.
6 *
7 * It is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU General Public License, either version 2
9 * of the License, or any later version.
10 *
11 * For the full copyright and license information, please read the
12 * LICENSE.txt file that was distributed with this source code.
13 *
14 * The TYPO3 project - inspiring people to share!
15 */
16
17 /**
18 * The interface for a request handler
19 * see FrontendRequestHandler
20 *
21 * @api
22 */
23 interface RequestHandlerInterface {
24
25 /**
26 * Handles a raw request
27 *
28 * @return void
29 * @api
30 */
31 public function handleRequest();
32
33 /**
34 * Checks if the request handler can handle the current request.
35 *
36 * @return bool TRUE if it can handle the request, otherwise FALSE
37 * @api
38 */
39 public function canHandleRequest();
40
41 /**
42 * Returns the priority - how eager the handler is to actually handle the
43 * request. An integer > 0 means "I want to handle this request" where
44 * "100" is default. "0" means "I am a fallback solution".
45 *
46 * @return int The priority of the request handler
47 * @api
48 */
49 public function getPriority();
50 }