Package io.undertow.servlet.core
Class DeploymentManagerImpl
- java.lang.Object
-
- io.undertow.servlet.core.DeploymentManagerImpl
-
- All Implemented Interfaces:
DeploymentManager
public class DeploymentManagerImpl extends Object implements DeploymentManager
The deployment manager. This manager is responsible for controlling the lifecycle of a servlet deployment.- Author:
- Stuart Douglas
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.undertow.servlet.api.DeploymentManager
DeploymentManager.State
-
-
Constructor Summary
Constructors Constructor Description DeploymentManagerImpl(DeploymentInfo deployment, ServletContainer servletContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeploy()Perform the initial deployment.DeploymentgetDeployment()DeploymentManager.StategetState()voidhandleDeploymentSessionConfig(DeploymentInfo deploymentInfo, ServletContextImpl servletContext)HttpHandlerstart()Starts the container.voidstop()voidundeploy()
-
-
-
Constructor Detail
-
DeploymentManagerImpl
public DeploymentManagerImpl(DeploymentInfo deployment, ServletContainer servletContainer)
-
-
Method Detail
-
deploy
public void deploy()
Description copied from interface:DeploymentManagerPerform the initial deployment. The builds all the internal metadata needed to support the servlet deployment, but will not actually start any servlets- Specified by:
deployin interfaceDeploymentManager
-
start
public HttpHandler start() throws jakarta.servlet.ServletException
Description copied from interface:DeploymentManagerStarts the container. Any Servlets with init on startup will be created here. This method returns the servlet path handler, which must then be added into the appropriate place in the path handler tree.- Specified by:
startin interfaceDeploymentManager- Throws:
jakarta.servlet.ServletException
-
stop
public void stop() throws jakarta.servlet.ServletException- Specified by:
stopin interfaceDeploymentManager- Throws:
jakarta.servlet.ServletException
-
handleDeploymentSessionConfig
public void handleDeploymentSessionConfig(DeploymentInfo deploymentInfo, ServletContextImpl servletContext)
-
undeploy
public void undeploy()
- Specified by:
undeployin interfaceDeploymentManager
-
getState
public DeploymentManager.State getState()
- Specified by:
getStatein interfaceDeploymentManager
-
getDeployment
public Deployment getDeployment()
- Specified by:
getDeploymentin interfaceDeploymentManager
-
-