PHP Класс AppserverIo\Appserver\ServletEngine\Servlets\DhtmlServlet

The DHTML files are processed in the scope of the service() method. This gives developers access to all variables in the method's scope as to all members of the servlet.
Автор: Tim Wagner ([email protected])
Наследование: extends AppserverIo\Psr\Servlet\Http\HttpServlet
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$appBase string The path to the application base directory.
$baseDirectory string The path to the application server's base directory.
$poweredBy string The string for the X-POWERED-BY header.
$webappPath string The path to the actual web application -> the base directory for DHTML templates.

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

Метод Описание
getAppBase ( ) : string Returns the path to the application base directory.
getBaseDirectory ( ) : string Returns the absolute path to the base directory.
getPoweredBy ( ) : string Returns the string for the X-POWERED-BY header.
getWebappPath ( ) : string Returns the path to the web application.
init ( AppserverIo\Psr\Servlet\ServletConfigInterface $servletConfig ) : void Initializes the servlet with the passed configuration.
service ( AppserverIo\Psr\Servlet\ServletRequestInterface $servletRequest, AppserverIo\Psr\Servlet\ServletResponseInterface $servletResponse ) : void Processes the DHTML file specified as servlet name.

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

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

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

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

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

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

Returns the string for the X-POWERED-BY header.
public getPoweredBy ( ) : string
Результат string The X-POWERED-BY header

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

Returns the path to the web application.
public getWebappPath ( ) : string
Результат string The path to the web application

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

Initializes the servlet with the passed configuration.
public init ( AppserverIo\Psr\Servlet\ServletConfigInterface $servletConfig ) : void
$servletConfig AppserverIo\Psr\Servlet\ServletConfigInterface The configuration to initialize the servlet with
Результат void

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

Processes the DHTML file specified as servlet name.
public service ( AppserverIo\Psr\Servlet\ServletRequestInterface $servletRequest, AppserverIo\Psr\Servlet\ServletResponseInterface $servletResponse ) : void
$servletRequest AppserverIo\Psr\Servlet\ServletRequestInterface The request instance
$servletResponse AppserverIo\Psr\Servlet\ServletResponseInterface The response sent back to the client
Результат void

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

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

The path to the application base directory.
protected string $appBase
Результат string

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

The path to the application server's base directory.
protected string $baseDirectory
Результат string

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

The string for the X-POWERED-BY header.
protected string $poweredBy
Результат string

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

The path to the actual web application -> the base directory for DHTML templates.
protected string $webappPath
Результат string