PHP 클래스 AppserverIo\Appserver\ServletEngine\AbstractServletEngine

저자: Bernhard Wick ([email protected])
저자: Tim Wagner ([email protected])
상속: implements AppserverIo\WebServer\Interfaces\HttpModuleInterface
파일 보기 프로젝트 열기: appserver-io/appserver

보호된 프로퍼티들

프로퍼티 타입 설명
$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