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.
상속: extends AppserverIo\Psr\Servlet\Http\HttpServlet
파일 보기 프로젝트 열기: appserver-io/appserver 1 사용 예제들

보호된 프로퍼티들

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