PHP Class AppserverIo\Appserver\ServletEngine\DependencyInjection\DeploymentDescriptorParser

Show file Open project: appserver-io/appserver Class Usage Examples

Protected Properties

Property Type Description
$servletContext AppserverIo\Psr\Servlet\ServletContextInterface The servlet context we want to parse the deployment descriptor for.

Public Methods

Method Description
getApplication ( ) : AppserverIo\Psr\Application\ApplicationInterface Returns the application context instance the servlet context is bound to.
getServletContext ( ) : AppserverIo\Psr\Servlet\ServletContextInterface Returns the servlet context instance.
injectServletContext ( AppserverIo\Psr\Servlet\ServletContextInterface $servletContext ) : void Inject the servlet context instance.
parse ( ) : void Parses the servlet context's deployment descriptor file for servlets that has to be registered in the object manager.

Method Details

getApplication() public method

Returns the application context instance the servlet context is bound to.
public getApplication ( ) : AppserverIo\Psr\Application\ApplicationInterface
return AppserverIo\Psr\Application\ApplicationInterface The application context instance

getServletContext() public method

Returns the servlet context instance.
public getServletContext ( ) : AppserverIo\Psr\Servlet\ServletContextInterface
return AppserverIo\Psr\Servlet\ServletContextInterface The servlet context instance

injectServletContext() public method

Inject the servlet context instance.
public injectServletContext ( AppserverIo\Psr\Servlet\ServletContextInterface $servletContext ) : void
$servletContext AppserverIo\Psr\Servlet\ServletContextInterface The servlet context instance
return void

parse() public method

Parses the servlet context's deployment descriptor file for servlets that has to be registered in the object manager.
public parse ( ) : void
return void

Property Details

$servletContext protected property

The servlet context we want to parse the deployment descriptor for.
protected ServletContextInterface,AppserverIo\Psr\Servlet $servletContext
return AppserverIo\Psr\Servlet\ServletContextInterface