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

Автор: Tim Wagner ([email protected])
Наследование: implements AppserverIo\Psr\Servlet\ServletConfigInterface
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$initParameter array Array with the servlet's init parameters found in the web.xml configuration file.
$servletContext AppserverIo\Psr\Servlet\ServletContextInterface The application instance.
$servletName string The servlets name from the web.xml configuration file.

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

Метод Описание
addInitParameter ( string $name, string $value ) : void Register's the init parameter under the passed name.
getAppBase ( ) : string Returns the path to the appserver webapp base directory.
getInitParameter ( string $name ) : string Return's the init parameter with the passed name.
getServletContext ( ) : AppserverIo\Psr\Servlet\ServletContextInterface Returns the servlet context instance.
getServletName ( ) : string Returns the servlet's name from the web.xml configuration file.
getWebappPath ( ) : string Returns the webapp base path.
injectServletContext ( AppserverIo\Psr\Servlet\ServletContextInterface $servletContext ) : void Initializes the servlet configuration with the servlet context instance.
injectServletName ( string $servletName ) : void Sets the servlet's Uname from the web.xml configuration file.

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

addInitParameter() публичный метод

Register's the init parameter under the passed name.
public addInitParameter ( string $name, string $value ) : void
$name string Name to register the init parameter with
$value string The value of the init parameter
Результат void

getAppBase() публичный метод

Returns the path to the appserver webapp base directory.
public getAppBase ( ) : string
Результат string The path to the appserver webapp base directory

getInitParameter() публичный метод

Return's the init parameter with the passed name.
public getInitParameter ( string $name ) : string
$name string Name of the init parameter to return
Результат string

getServletContext() публичный метод

Returns the servlet context instance.
public getServletContext ( ) : AppserverIo\Psr\Servlet\ServletContextInterface
Результат AppserverIo\Psr\Servlet\ServletContextInterface The servlet context instance

getServletName() публичный метод

Returns the servlet's name from the web.xml configuration file.
См. также: AppserverIo\Psr\Servlet\ServletConfigInterface::getServletName()
public getServletName ( ) : string
Результат string The servlet name

getWebappPath() публичный метод

Returns the webapp base path.
public getWebappPath ( ) : string
Результат string The webapp base path

injectServletContext() публичный метод

Initializes the servlet configuration with the servlet context instance.
public injectServletContext ( AppserverIo\Psr\Servlet\ServletContextInterface $servletContext ) : void
$servletContext AppserverIo\Psr\Servlet\ServletContextInterface The servlet context instance
Результат void

injectServletName() публичный метод

Sets the servlet's Uname from the web.xml configuration file.
public injectServletName ( string $servletName ) : void
$servletName string The servlet name
Результат void

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

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

Array with the servlet's init parameters found in the web.xml configuration file.
protected array $initParameter
Результат array

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

The application instance.
protected ServletContextInterface,AppserverIo\Psr\Servlet $servletContext
Результат AppserverIo\Psr\Servlet\ServletContextInterface

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

The servlets name from the web.xml configuration file.
protected string $servletName
Результат string