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) Deprecated.voidsetAuthenticationMechanisms(List<AuthenticationMechanism> authenticationMechanisms) voidsetDefaultCharset(Charset defaultCharset) Deprecated.voidsetDefaultRequestCharset(Charset defaultRequestCharset) voidsetDefaultResponseCharset(Charset defaultResponseCharset) voidsetErrorPages(ErrorPages errorPages) voidsetInitialHandler(HttpHandler initialHandler) voidsetMimeExtensionMappings(Map<String, String> mimeExtensionMappings) setSecurityPathMatches(SecurityPathMatches securityPathMatches) 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:
getServletContainerin interfaceDeployment
-
getServlets
- Specified by:
getServletsin interfaceDeployment
-
getFilters
- Specified by:
getFiltersin interfaceDeployment
-
getDeploymentInfo
- Specified by:
getDeploymentInfoin interfaceDeployment
-
getApplicationListeners
- Specified by:
getApplicationListenersin interfaceDeployment
-
getServletContext
- Specified by:
getServletContextin interfaceDeployment
-
getHandler
- Specified by:
getHandlerin interfaceDeployment
-
setInitialHandler
-
getLifecycleObjects
-
getServletPaths
- Specified by:
getServletPathsin interfaceDeployment
-
createThreadSetupAction
public <C,T> ThreadSetupHandler.Action<C,T> createThreadSetupAction(ThreadSetupHandler.Action<C, T> target) - Specified by:
createThreadSetupActionin interfaceDeployment
-
getErrorPages
- Specified by:
getErrorPagesin interfaceDeployment
-
setErrorPages
-
getMimeExtensionMappings
- Specified by:
getMimeExtensionMappingsin interfaceDeployment
-
setMimeExtensionMappings
-
getServletDispatcher
- Specified by:
getServletDispatcherin interfaceDeployment
-
getSessionManager
- Specified by:
getSessionManagerin interfaceDeployment- Returns:
- The session manager
-
getExecutor
- Specified by:
getExecutorin interfaceDeployment- Returns:
- The executor used for servlet requests. May be null in which case the XNIO worker is used
-
getAsyncExecutor
- Specified by:
getAsyncExecutorin interfaceDeployment- Returns:
- The executor used for async request dispatches. May be null in which case the XNIO worker is used
-
getDefaultCharset
Deprecated.- Specified by:
getDefaultCharsetin interfaceDeployment
-
getDefaultRequestCharset
- Specified by:
getDefaultRequestCharsetin interfaceDeployment
-
getDefaultResponseCharset
- Specified by:
getDefaultResponseCharsetin interfaceDeployment
-
setAuthenticationMechanisms
-
getSecurityPathMatches
- Specified by:
getSecurityPathMatchesin interfaceDeployment
-
setSecurityPathMatches
-
getAuthenticationMechanisms
- Specified by:
getAuthenticationMechanismsin interfaceDeployment- Returns:
- The list of authentication mechanisms configured for this deployment
-
getDeploymentState
- Specified by:
getDeploymentStatein interfaceDeployment
-
tryAddServletMappings
Description copied from interface:DeploymentAttempts to add a servlet mapping usingServletRegistration.addMapping(String...)- Specified by:
tryAddServletMappingsin interfaceDeployment- Returns:
- true if the addition was sucessful
-
setDefaultCharset
Deprecated. -
setDefaultRequestCharset
-
setDefaultResponseCharset
-