Package io.undertow.servlet.core
Class DeploymentImpl
- java.lang.Object
-
- io.undertow.servlet.core.DeploymentImpl
-
- All Implemented Interfaces:
Deployment
public class DeploymentImpl extends Object implements 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
Constructors Constructor Description DeploymentImpl(DeploymentManager deploymentManager, DeploymentInfo deploymentInfo, ServletContainer servletContainer)
-
Method Summary
-
-
-
Constructor Detail
-
DeploymentImpl
public DeploymentImpl(DeploymentManager deploymentManager, DeploymentInfo deploymentInfo, ServletContainer servletContainer)
-
-
Method Detail
-
getServletContainer
public ServletContainer getServletContainer()
- Specified by:
getServletContainerin interfaceDeployment
-
getServlets
public ManagedServlets getServlets()
- Specified by:
getServletsin interfaceDeployment
-
getFilters
public ManagedFilters getFilters()
- Specified by:
getFiltersin interfaceDeployment
-
getDeploymentInfo
public DeploymentInfo getDeploymentInfo()
- Specified by:
getDeploymentInfoin interfaceDeployment
-
getApplicationListeners
public ApplicationListeners getApplicationListeners()
- Specified by:
getApplicationListenersin interfaceDeployment
-
getServletContext
public ServletContextImpl getServletContext()
- Specified by:
getServletContextin interfaceDeployment
-
getHandler
public HttpHandler getHandler()
- Specified by:
getHandlerin interfaceDeployment
-
setInitialHandler
public void setInitialHandler(HttpHandler initialHandler)
-
getServletPaths
public ServletPathMatches getServletPaths()
- Specified by:
getServletPathsin interfaceDeployment
-
createThreadSetupAction
public <C,T> ThreadSetupHandler.Action<C,T> createThreadSetupAction(ThreadSetupHandler.Action<C,T> target)
- Specified by:
createThreadSetupActionin interfaceDeployment
-
getErrorPages
public ErrorPages getErrorPages()
- Specified by:
getErrorPagesin interfaceDeployment
-
setErrorPages
public void setErrorPages(ErrorPages errorPages)
-
getMimeExtensionMappings
public Map<String,String> getMimeExtensionMappings()
- Specified by:
getMimeExtensionMappingsin interfaceDeployment
-
setMimeExtensionMappings
public void setMimeExtensionMappings(Map<String,String> mimeExtensionMappings)
-
getServletDispatcher
public ServletDispatcher getServletDispatcher()
- Specified by:
getServletDispatcherin interfaceDeployment
-
getSessionManager
public SessionManager getSessionManager()
- Specified by:
getSessionManagerin interfaceDeployment- Returns:
- The session manager
-
getExecutor
public Executor getExecutor()
- Specified by:
getExecutorin interfaceDeployment- Returns:
- The executor used for servlet requests. May be null in which case the XNIO worker is used
-
getAsyncExecutor
public Executor 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 public Charset getDefaultCharset()
Deprecated.- Specified by:
getDefaultCharsetin interfaceDeployment
-
getDefaultRequestCharset
public Charset getDefaultRequestCharset()
- Specified by:
getDefaultRequestCharsetin interfaceDeployment
-
getDefaultResponseCharset
public Charset getDefaultResponseCharset()
- Specified by:
getDefaultResponseCharsetin interfaceDeployment
-
setAuthenticationMechanisms
public void setAuthenticationMechanisms(List<AuthenticationMechanism> authenticationMechanisms)
-
getAuthenticationMechanisms
public List<AuthenticationMechanism> getAuthenticationMechanisms()
- Specified by:
getAuthenticationMechanismsin interfaceDeployment- Returns:
- The list of authentication mechanisms configured for this deployment
-
getDeploymentState
public DeploymentManager.State getDeploymentState()
- Specified by:
getDeploymentStatein interfaceDeployment
-
tryAddServletMappings
public Set<String> tryAddServletMappings(ServletInfo servletInfo, String... urlPatterns)
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 public void setDefaultCharset(Charset defaultCharset)
Deprecated.
-
setDefaultRequestCharset
public void setDefaultRequestCharset(Charset defaultRequestCharset)
-
setDefaultResponseCharset
public void setDefaultResponseCharset(Charset defaultResponseCharset)
-
-