Package io.undertow.servlet.core
Class DeploymentManagerImpl
- java.lang.Object
-
- io.undertow.servlet.core.DeploymentManagerImpl
-
- All Implemented Interfaces:
DeploymentManager
public class DeploymentManagerImpl extends java.lang.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 void
deploy()
Perform the initial deployment.Deployment
getDeployment()
DeploymentManager.State
getState()
void
handleDeploymentSessionConfig(DeploymentInfo deploymentInfo, ServletContextImpl servletContext)
io.undertow.server.HttpHandler
start()
Starts the container.void
stop()
void
undeploy()
-
-
-
Constructor Detail
-
DeploymentManagerImpl
public DeploymentManagerImpl(DeploymentInfo deployment, ServletContainer servletContainer)
-
-
Method Detail
-
deploy
public void deploy()
Description copied from interface:DeploymentManager
Perform the initial deployment. The builds all the internal metadata needed to support the servlet deployment, but will not actually start any servlets- Specified by:
deploy
in interfaceDeploymentManager
-
start
public io.undertow.server.HttpHandler start() throws jakarta.servlet.ServletException
Description copied from interface:DeploymentManager
Starts 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:
start
in interfaceDeploymentManager
- Throws:
jakarta.servlet.ServletException
-
stop
public void stop() throws jakarta.servlet.ServletException
- Specified by:
stop
in interfaceDeploymentManager
- Throws:
jakarta.servlet.ServletException
-
handleDeploymentSessionConfig
public void handleDeploymentSessionConfig(DeploymentInfo deploymentInfo, ServletContextImpl servletContext)
-
undeploy
public void undeploy()
- Specified by:
undeploy
in interfaceDeploymentManager
-
getState
public DeploymentManager.State getState()
- Specified by:
getState
in interfaceDeploymentManager
-
getDeployment
public Deployment getDeployment()
- Specified by:
getDeployment
in interfaceDeploymentManager
-
-