Property | Type | Description | |
---|---|---|---|
$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. |
Method | Description | |
---|---|---|
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. |
public getAppBase ( ) : string | ||
return | string | The path to the appserver webapp base directory |
public getInitParameter ( string $name ) : string | ||
$name | string | Name of the init parameter to return |
return | string |
public getServletContext ( ) : AppserverIo\Psr\Servlet\ServletContextInterface | ||
return | AppserverIo\Psr\Servlet\ServletContextInterface | The servlet context instance |
public getServletName ( ) : string | ||
return | string | The servlet name |
public getWebappPath ( ) : string | ||
return | string | The webapp base path |
public injectServletContext ( AppserverIo\Psr\Servlet\ServletContextInterface $servletContext ) : void | ||
$servletContext | AppserverIo\Psr\Servlet\ServletContextInterface | The servlet context instance |
return | void |
public injectServletName ( string $servletName ) : void | ||
$servletName | string | The servlet name |
return | void |
protected array $initParameter | ||
return | array |
protected ServletContextInterface,AppserverIo\Psr\Servlet $servletContext | ||
return | AppserverIo\Psr\Servlet\ServletContextInterface |
protected string $servletName | ||
return | string |