PHP 클래스 AppserverIo\Appserver\ServletEngine\ServletConfiguration

상속: implements AppserverIo\Psr\Servlet\ServletConfigInterface
파일 보기 프로젝트 열기: appserver-io/appserver 1 사용 예제들

보호된 프로퍼티들

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