PHP Класс AppserverIo\Appserver\ServletEngine\AbstractServletEngine

Автор: Bernhard Wick ([email protected])
Автор: Tim Wagner ([email protected])
Наследование: implements AppserverIo\WebServer\Interfaces\HttpModuleInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$applications array Storage with the available applications.
$dependencies array Storage with the available applications.
$handlers array Storage handlers registered in the web server.
$valves array Storage for the servlet engines valves that handles the request.

Открытые методы

Метод Описание
findRequestedApplication ( AppserverIo\Server\Interfaces\RequestContextInterface $requestContext ) : null | AppserverIo\Psr\Application\ApplicationInterface Will try to find the application based on the context path taken from the requested filename.
getApplications ( ) : array Returns the initialized applications.
getContainer ( ) : AppserverIo\Appserver\Core\Interfaces\ContainerInterface Returns the container instance.
getDependencies ( ) : array Returns an array of module names which should be executed first.
getHandlers ( ) : array Returns the initialized web server handlers.
getServerContext ( ) : AppserverIo\Server\Interfaces\ServerContextInterface Returns the server context instance.
getValves ( ) : array Returns the initialized valves.
initApplications ( ) : void Initialize the applications.
initHandlers ( ) : void Initialize the web server handlers.
initValves ( ) : void Initialize the valves that handles the requests.
logCriticalException ( Exception $e ) : void Helper method that writes critical system exceptions to the system logger if configured.
logDebugException ( Exception $e ) : void Helper method that writes debug system exceptions to the system logger if configured.
logErrorException ( Exception $e ) : void Helper method that writes system exceptions to the system logger if configured.
prepare ( ) : boolean Prepares the module for upcoming request in specific context

Описание методов

findRequestedApplication() публичный Метод

Will return the found application on success and throw an exception if nothing could be found
public findRequestedApplication ( AppserverIo\Server\Interfaces\RequestContextInterface $requestContext ) : null | AppserverIo\Psr\Application\ApplicationInterface
$requestContext AppserverIo\Server\Interfaces\RequestContextInterface Context of the current request
Результат null | AppserverIo\Psr\Application\ApplicationInterface

getApplications() публичный Метод

Returns the initialized applications.
public getApplications ( ) : array
Результат array The initialized application instances

getContainer() публичный Метод

Returns the container instance.
public getContainer ( ) : AppserverIo\Appserver\Core\Interfaces\ContainerInterface
Результат AppserverIo\Appserver\Core\Interfaces\ContainerInterface The container instance

getDependencies() публичный Метод

Returns an array of module names which should be executed first.
public getDependencies ( ) : array
Результат array The module names this module depends on

getHandlers() публичный Метод

Returns the initialized web server handlers.
public getHandlers ( ) : array
Результат array The initialized web server handlers

getServerContext() публичный Метод

Returns the server context instance.
public getServerContext ( ) : AppserverIo\Server\Interfaces\ServerContextInterface
Результат AppserverIo\Server\Interfaces\ServerContextInterface The actual server context instance

getValves() публичный Метод

Returns the initialized valves.
public getValves ( ) : array
Результат array The initialized valves

initApplications() публичный Метод

Initialize the applications.
public initApplications ( ) : void
Результат void

initHandlers() публичный Метод

Initialize the web server handlers.
public initHandlers ( ) : void
Результат void

initValves() публичный Метод

Initialize the valves that handles the requests.
public initValves ( ) : void
Результат void

logCriticalException() публичный Метод

Helper method that writes critical system exceptions to the system logger if configured.
public logCriticalException ( Exception $e ) : void
$e Exception The exception to be logged
Результат void

logDebugException() публичный Метод

Helper method that writes debug system exceptions to the system logger if configured.
public logDebugException ( Exception $e ) : void
$e Exception The exception to be logged
Результат void

logErrorException() публичный Метод

Helper method that writes system exceptions to the system logger if configured.
public logErrorException ( Exception $e ) : void
$e Exception The exception to be logged
Результат void

prepare() публичный Метод

Prepares the module for upcoming request in specific context
public prepare ( ) : boolean
Результат boolean

Описание свойств

$applications защищенное свойство

Storage with the available applications.
protected array $applications
Результат array

$dependencies защищенное свойство

Storage with the available applications.
protected array $dependencies
Результат array

$handlers защищенное свойство

Storage handlers registered in the web server.
protected array $handlers
Результат array

$valves защищенное свойство

Storage for the servlet engines valves that handles the request.
protected array $valves
Результат array