PHP Class 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.
Inheritance: extends AppserverIo\Psr\Servlet\Http\HttpServlet
Afficher le fichier Open project: appserver-io/appserver Class Usage Examples

Protected Properties

Свойство Type Description
$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.

Méthodes publiques

Méthode Description
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.

Method Details

getAppBase() public méthode

Returns the path to the application base directory.
public getAppBase ( ) : string
Résultat string The application base directory

getBaseDirectory() public méthode

Returns the absolute path to the base directory.
public getBaseDirectory ( ) : string
Résultat string The base directory

getPoweredBy() public méthode

Returns the string for the X-POWERED-BY header.
public getPoweredBy ( ) : string
Résultat string The X-POWERED-BY header

getWebappPath() public méthode

Returns the path to the web application.
public getWebappPath ( ) : string
Résultat string The path to the web application

init() public méthode

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
Résultat void

service() public méthode

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
Résultat void

Property Details

$appBase protected_oe property

The path to the application base directory.
protected string $appBase
Résultat string

$baseDirectory protected_oe property

The path to the application server's base directory.
protected string $baseDirectory
Résultat string

$poweredBy protected_oe property

The string for the X-POWERED-BY header.
protected string $poweredBy
Résultat string

$webappPath protected_oe property

The path to the actual web application -> the base directory for DHTML templates.
protected string $webappPath
Résultat string