Package io.undertow.servlet.core
Class DeploymentImpl
java.lang.Object
io.undertow.servlet.core.DeploymentImpl
- All Implemented Interfaces:
Deployment
Class that represents the mutable state associated with a servlet deployment that is built up
during the bootstrap process.
Classes calling deployment methods during bootstrap must be aware of ordering concerns.
- Author:
- Stuart Douglas
-
Constructor Summary
ConstructorsConstructorDescriptionDeploymentImpl
(DeploymentManager deploymentManager, DeploymentInfo deploymentInfo, ServletContainer servletContainer) -
Method Summary
Modifier and TypeMethodDescription<C,
T> ThreadSetupHandler.Action<C, T> createThreadSetupAction
(ThreadSetupHandler.Action<C, T> target) List<io.undertow.security.api.AuthenticationMechanism>
Deprecated.io.undertow.server.HttpHandler
io.undertow.server.session.SessionManager
void
setAuthenticationMechanisms
(List<io.undertow.security.api.AuthenticationMechanism> authenticationMechanisms) void
setDefaultCharset
(Charset defaultCharset) Deprecated.void
setDefaultRequestCharset
(Charset defaultRequestCharset) void
setDefaultResponseCharset
(Charset defaultResponseCharset) void
setErrorPages
(ErrorPages errorPages) void
setInitialHandler
(io.undertow.server.HttpHandler initialHandler) void
setMimeExtensionMappings
(Map<String, String> mimeExtensionMappings) tryAddServletMappings
(ServletInfo servletInfo, String... urlPatterns) Attempts to add a servlet mapping usingServletRegistration.addMapping(String...)
-
Constructor Details
-
DeploymentImpl
public DeploymentImpl(DeploymentManager deploymentManager, DeploymentInfo deploymentInfo, ServletContainer servletContainer)
-
-
Method Details
-
getServletContainer
- Specified by:
getServletContainer
in interfaceDeployment
-
getServlets
- Specified by:
getServlets
in interfaceDeployment
-
getFilters
- Specified by:
getFilters
in interfaceDeployment
-
getDeploymentInfo
- Specified by:
getDeploymentInfo
in interfaceDeployment
-
getApplicationListeners
- Specified by:
getApplicationListeners
in interfaceDeployment
-
getServletContext
- Specified by:
getServletContext
in interfaceDeployment
-
getHandler
public io.undertow.server.HttpHandler getHandler()- Specified by:
getHandler
in interfaceDeployment
-
setInitialHandler
public void setInitialHandler(io.undertow.server.HttpHandler initialHandler) -
getLifecycleObjects
-
getServletPaths
- Specified by:
getServletPaths
in interfaceDeployment
-
createThreadSetupAction
public <C,T> ThreadSetupHandler.Action<C,T> createThreadSetupAction(ThreadSetupHandler.Action<C, T> target) - Specified by:
createThreadSetupAction
in interfaceDeployment
-
getErrorPages
- Specified by:
getErrorPages
in interfaceDeployment
-
setErrorPages
-
getMimeExtensionMappings
- Specified by:
getMimeExtensionMappings
in interfaceDeployment
-
setMimeExtensionMappings
-
getServletDispatcher
- Specified by:
getServletDispatcher
in interfaceDeployment
-
getSessionManager
public io.undertow.server.session.SessionManager getSessionManager()- Specified by:
getSessionManager
in interfaceDeployment
- Returns:
- The session manager
-
getExecutor
- Specified by:
getExecutor
in interfaceDeployment
- Returns:
- The executor used for servlet requests. May be null in which case the XNIO worker is used
-
getAsyncExecutor
- Specified by:
getAsyncExecutor
in interfaceDeployment
- Returns:
- The executor used for async request dispatches. May be null in which case the XNIO worker is used
-
getDefaultCharset
Deprecated.- Specified by:
getDefaultCharset
in interfaceDeployment
-
getDefaultRequestCharset
- Specified by:
getDefaultRequestCharset
in interfaceDeployment
-
getDefaultResponseCharset
- Specified by:
getDefaultResponseCharset
in interfaceDeployment
-
setAuthenticationMechanisms
public void setAuthenticationMechanisms(List<io.undertow.security.api.AuthenticationMechanism> authenticationMechanisms) -
getAuthenticationMechanisms
- Specified by:
getAuthenticationMechanisms
in interfaceDeployment
- Returns:
- The list of authentication mechanisms configured for this deployment
-
getDeploymentState
- Specified by:
getDeploymentState
in interfaceDeployment
-
tryAddServletMappings
Description copied from interface:Deployment
Attempts to add a servlet mapping usingServletRegistration.addMapping(String...)
- Specified by:
tryAddServletMappings
in interfaceDeployment
- Returns:
- true if the addition was sucessful
-
setDefaultCharset
Deprecated. -
setDefaultRequestCharset
-
setDefaultResponseCharset
-