java.lang.Cloneable
public class DeploymentInfo
extends java.lang.Object
implements java.lang.Cloneable
Constructor | Description |
---|---|
DeploymentInfo() |
Modifier and Type | Method | Description |
---|---|---|
DeploymentInfo |
addAuthenticationMechanism(java.lang.String name,
io.undertow.security.api.AuthenticationMechanismFactory factory) |
Adds an authentication mechanism.
|
DeploymentInfo |
addErrorPage(ErrorPage errorPage) |
|
DeploymentInfo |
addErrorPages(ErrorPage... errorPages) |
|
DeploymentInfo |
addErrorPages(java.util.Collection<ErrorPage> errorPages) |
|
DeploymentInfo |
addFilter(FilterInfo filter) |
|
DeploymentInfo |
addFilters(FilterInfo... filters) |
|
DeploymentInfo |
addFilters(java.util.Collection<FilterInfo> filters) |
|
DeploymentInfo |
addFilterServletNameMapping(java.lang.String filterName,
java.lang.String mapping,
javax.servlet.DispatcherType dispatcher) |
|
DeploymentInfo |
addFilterUrlMapping(java.lang.String filterName,
java.lang.String mapping,
javax.servlet.DispatcherType dispatcher) |
|
DeploymentInfo |
addFirstAuthenticationMechanism(java.lang.String name,
io.undertow.security.api.AuthenticationMechanism mechanism) |
Adds an authentication mechanism directly to the deployment.
|
DeploymentInfo |
addInitialHandlerChainWrapper(io.undertow.server.HandlerWrapper wrapper) |
|
DeploymentInfo |
addInitParameter(java.lang.String name,
java.lang.String value) |
|
DeploymentInfo |
addInnerHandlerChainWrapper(io.undertow.server.HandlerWrapper wrapper) |
Adds an inner handler chain wrapper.
|
DeploymentInfo |
addLastAuthenticationMechanism(java.lang.String name,
io.undertow.security.api.AuthenticationMechanism mechanism) |
Adds an authentication mechanism directly to the deployment.
|
DeploymentInfo |
addLifecycleInterceptor(LifecycleInterceptor interceptor) |
|
DeploymentInfo |
addListener(ListenerInfo listener) |
|
DeploymentInfo |
addListeners(ListenerInfo... listeners) |
|
DeploymentInfo |
addListeners(java.util.Collection<ListenerInfo> listeners) |
|
DeploymentInfo |
addLocaleCharsetMapping(java.lang.String locale,
java.lang.String charset) |
|
DeploymentInfo |
addMimeMapping(MimeMapping mimeMappings) |
|
DeploymentInfo |
addMimeMappings(MimeMapping... mimeMappings) |
|
DeploymentInfo |
addMimeMappings(java.util.Collection<MimeMapping> mimeMappings) |
|
DeploymentInfo |
addNotificactionReceivers(io.undertow.security.api.NotificationReceiver... notificationReceivers) |
|
DeploymentInfo |
addNotificationReceiver(io.undertow.security.api.NotificationReceiver notificationReceiver) |
|
DeploymentInfo |
addNotificationReceivers(java.util.Collection<io.undertow.security.api.NotificationReceiver> notificationReceivers) |
|
DeploymentInfo |
addOuterHandlerChainWrapper(io.undertow.server.HandlerWrapper wrapper) |
Adds an outer handler wrapper.
|
DeploymentInfo |
addPreCompressedResourceEncoding(java.lang.String encoding,
java.lang.String extension) |
Adds a pre compressed resource encoding and maps it to a file extension
|
DeploymentInfo |
addPrincipalVsRoleMapping(java.lang.String principal,
java.lang.String mapping) |
|
DeploymentInfo |
addPrincipalVsRoleMappings(java.lang.String principal,
java.lang.String... mappings) |
|
DeploymentInfo |
addPrincipalVsRoleMappings(java.lang.String principal,
java.util.Collection<java.lang.String> mappings) |
|
DeploymentInfo |
addSecurityConstraint(SecurityConstraint securityConstraint) |
|
DeploymentInfo |
addSecurityConstraints(SecurityConstraint... securityConstraints) |
|
DeploymentInfo |
addSecurityConstraints(java.util.Collection<SecurityConstraint> securityConstraints) |
|
DeploymentInfo |
addSecurityRole(java.lang.String role) |
|
DeploymentInfo |
addSecurityRoles(java.lang.String... roles) |
|
DeploymentInfo |
addSecurityRoles(java.util.Collection<java.lang.String> roles) |
|
DeploymentInfo |
addSecurityWrapper(io.undertow.server.HandlerWrapper wrapper) |
Adds a security handler.
|
DeploymentInfo |
addServlet(ServletInfo servlet) |
|
DeploymentInfo |
addServletContainerInitalizer(ServletContainerInitializerInfo servletContainerInitializer) |
|
DeploymentInfo |
addServletContainerInitalizers(ServletContainerInitializerInfo... servletContainerInitializer) |
|
DeploymentInfo |
addServletContainerInitalizers(java.util.List<ServletContainerInitializerInfo> servletContainerInitializer) |
|
DeploymentInfo |
addServletContextAttribute(java.lang.String name,
java.lang.Object value) |
|
DeploymentInfo |
addServletExtension(ServletExtension servletExtension) |
Adds an additional servlet extension to the deployment.
|
DeploymentInfo |
addServlets(ServletInfo... servlets) |
|
DeploymentInfo |
addServlets(java.util.Collection<ServletInfo> servlets) |
|
DeploymentInfo |
addSessionListener(io.undertow.server.session.SessionListener sessionListener) |
|
DeploymentInfo |
addThreadSetupAction(ThreadSetupAction action) |
Deprecated.
|
DeploymentInfo |
addThreadSetupAction(ThreadSetupHandler action) |
|
DeploymentInfo |
addWelcomePage(java.lang.String welcomePage) |
|
DeploymentInfo |
addWelcomePages(java.lang.String... welcomePages) |
|
DeploymentInfo |
addWelcomePages(java.util.Collection<java.lang.String> welcomePages) |
|
DeploymentInfo |
clearLoginMethods() |
Removes all configured authentication mechanisms from the deployment.
|
DeploymentInfo |
clone() |
|
java.util.concurrent.Executor |
getAsyncExecutor() |
|
java.util.Map<java.lang.String,io.undertow.security.api.AuthenticationMechanismFactory> |
getAuthenticationMechanisms() |
|
io.undertow.security.api.AuthenticationMode |
getAuthenticationMode() |
|
AuthorizationManager |
getAuthorizationManager() |
|
ClassIntrospecter |
getClassIntrospecter() |
|
java.lang.ClassLoader |
getClassLoader() |
|
ConfidentialPortManager |
getConfidentialPortManager() |
|
int |
getContentTypeCacheSize() |
|
java.lang.String |
getContextPath() |
|
CrawlerSessionManagerConfig |
getCrawlerSessionManagerConfig() |
|
int |
getDefaultCookieVersion() |
|
java.lang.String |
getDefaultEncoding() |
|
javax.servlet.MultipartConfigElement |
getDefaultMultipartConfig() |
|
DefaultServletConfig |
getDefaultServletConfig() |
|
int |
getDefaultSessionTimeout() |
|
java.lang.String |
getDeploymentName() |
|
java.lang.String |
getDisplayName() |
|
java.util.List<ErrorPage> |
getErrorPages() |
|
ExceptionHandler |
getExceptionHandler() |
Returns the exception handler that is used by this deployment.
|
java.util.concurrent.Executor |
getExecutor() |
|
java.util.List<FilterMappingInfo> |
getFilterMappings() |
|
java.util.Map<java.lang.String,FilterInfo> |
getFilters() |
|
java.lang.String |
getHostName() |
|
io.undertow.security.idm.IdentityManager |
getIdentityManager() |
|
java.util.List<io.undertow.server.HandlerWrapper> |
getInitialHandlerChainWrappers() |
|
io.undertow.server.HandlerWrapper |
getInitialSecurityWrapper() |
|
java.util.Map<java.lang.String,java.lang.String> |
getInitParameters() |
|
java.util.List<io.undertow.server.HandlerWrapper> |
getInnerHandlerChainWrappers() |
|
io.undertow.security.api.AuthenticationMechanism |
getJaspiAuthenticationMechanism() |
|
javax.servlet.descriptor.JspConfigDescriptor |
getJspConfigDescriptor() |
|
java.util.List<LifecycleInterceptor> |
getLifecycleInterceptors() |
|
java.util.List<ListenerInfo> |
getListeners() |
|
java.util.Map<java.lang.String,java.lang.String> |
getLocaleCharsetMapping() |
|
LoginConfig |
getLoginConfig() |
|
int |
getMajorVersion() |
|
MetricsCollector |
getMetricsCollector() |
|
java.util.List<MimeMapping> |
getMimeMappings() |
|
int |
getMinorVersion() |
|
java.util.List<io.undertow.security.api.NotificationReceiver> |
getNotificationReceivers() |
|
java.util.List<io.undertow.server.HandlerWrapper> |
getOuterHandlerChainWrappers() |
|
java.util.Map<java.lang.String,java.lang.String> |
getPreCompressedResources() |
|
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
getPrincipalVersusRolesMap() |
|
io.undertow.server.handlers.resource.ResourceManager |
getResourceManager() |
|
java.util.List<SecurityConstraint> |
getSecurityConstraints() |
|
io.undertow.security.api.SecurityContextFactory |
getSecurityContextFactory() |
|
java.util.Set<java.lang.String> |
getSecurityRoles() |
|
java.util.List<io.undertow.server.HandlerWrapper> |
getSecurityWrappers() |
|
java.lang.String |
getServerName() |
|
java.util.List<ServletContainerInitializerInfo> |
getServletContainerInitializers() |
|
java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Object> |
getServletContextAttributeBackingMap() |
|
java.util.Map<java.lang.String,java.lang.Object> |
getServletContextAttributes() |
|
java.util.List<ServletExtension> |
getServletExtensions() |
|
java.util.Map<java.lang.String,ServletInfo> |
getServlets() |
|
ServletSessionConfig |
getServletSessionConfig() |
|
ServletStackTraces |
getServletStackTraces() |
|
SessionConfigWrapper |
getSessionConfigWrapper() |
|
io.undertow.server.session.SessionIdGenerator |
getSessionIdGenerator() |
|
java.util.List<io.undertow.server.session.SessionListener> |
getSessionListeners() |
|
SessionManagerFactory |
getSessionManagerFactory() |
|
SessionPersistenceManager |
getSessionPersistenceManager() |
|
java.io.File |
getTempDir() |
|
java.nio.file.Path |
getTempPath() |
|
java.util.List<ThreadSetupHandler> |
getThreadSetupActions() |
|
java.lang.String |
getUrlEncoding() |
|
java.util.List<java.lang.String> |
getWelcomePages() |
|
DeploymentInfo |
insertFilterServletNameMapping(int pos,
java.lang.String filterName,
java.lang.String mapping,
javax.servlet.DispatcherType dispatcher) |
|
DeploymentInfo |
insertFilterUrlMapping(int pos,
java.lang.String filterName,
java.lang.String mapping,
javax.servlet.DispatcherType dispatcher) |
|
boolean |
isAllowNonStandardWrappers() |
|
boolean |
isAuthenticationMechanismPresent(java.lang.String mechanismName) |
Returns true if the specified mechanism is present in the login config
|
boolean |
isChangeSessionIdOnLogin() |
|
boolean |
isCheckOtherSessionManagers() |
|
boolean |
isDenyUncoveredHttpMethods() |
|
boolean |
isDisableCachingForSecuredPages() |
|
boolean |
isEagerFilterInit() |
|
boolean |
isEscapeErrorMessage() |
|
boolean |
isIgnoreFlush() |
|
boolean |
isInvalidateSessionOnLogout() |
|
boolean |
isSecurityDisabled() |
|
boolean |
isSendCustomReasonPhraseOnError() |
|
boolean |
isUseCachedAuthenticationMechanism() |
|
DeploymentInfo |
setAllowNonStandardWrappers(boolean allowNonStandardWrappers) |
|
DeploymentInfo |
setAsyncExecutor(java.util.concurrent.Executor asyncExecutor) |
Sets the executor that is used to run async tasks.
|
DeploymentInfo |
setAuthenticationMode(io.undertow.security.api.AuthenticationMode authenticationMode) |
Sets if this deployment should use pro-active authentication and always authenticate if the credentials are present
or constraint driven auth which will only call the authentication mechanisms for protected resources.
|
DeploymentInfo |
setAuthorizationManager(AuthorizationManager authorizationManager) |
|
DeploymentInfo |
setChangeSessionIdOnLogin(boolean changeSessionIdOnLogin) |
|
DeploymentInfo |
setCheckOtherSessionManagers(boolean checkOtherSessionManagers) |
If this is true then when an existing invalid session id is found all other deployments in the container will have their
session managers checked to see if it represents a valid session.
|
DeploymentInfo |
setClassIntrospecter(ClassIntrospecter classIntrospecter) |
|
DeploymentInfo |
setClassLoader(java.lang.ClassLoader classLoader) |
|
DeploymentInfo |
setConfidentialPortManager(ConfidentialPortManager confidentialPortManager) |
|
DeploymentInfo |
setContentTypeCacheSize(int contentTypeCacheSize) |
|
DeploymentInfo |
setContextPath(java.lang.String contextPath) |
|
DeploymentInfo |
setCrawlerSessionManagerConfig(CrawlerSessionManagerConfig crawlerSessionManagerConfig) |
|
DeploymentInfo |
setDefaultCookieVersion(int defaultCookieVersion) |
|
DeploymentInfo |
setDefaultEncoding(java.lang.String defaultEncoding) |
Sets the default encoding that will be used for servlet responses
|
DeploymentInfo |
setDefaultMultipartConfig(javax.servlet.MultipartConfigElement defaultMultipartConfig) |
|
DeploymentInfo |
setDefaultServletConfig(DefaultServletConfig defaultServletConfig) |
|
DeploymentInfo |
setDefaultSessionTimeout(int defaultSessionTimeout) |
|
DeploymentInfo |
setDenyUncoveredHttpMethods(boolean denyUncoveredHttpMethods) |
|
DeploymentInfo |
setDeploymentName(java.lang.String deploymentName) |
|
DeploymentInfo |
setDisableCachingForSecuredPages(boolean disableCachingForSecuredPages) |
|
DeploymentInfo |
setDisplayName(java.lang.String displayName) |
|
DeploymentInfo |
setEagerFilterInit(boolean eagerFilterInit) |
|
DeploymentInfo |
setEscapeErrorMessage(boolean escapeErrorMessage) |
Set if if the message passed to
HttpServletResponse.sendError(int, String) should be escaped. |
DeploymentInfo |
setExceptionHandler(ExceptionHandler exceptionHandler) |
Sets the default exception handler for this deployment
|
DeploymentInfo |
setExecutor(java.util.concurrent.Executor executor) |
Sets the executor that will be used to run servlet invocations.
|
DeploymentInfo |
setHostName(java.lang.String hostName) |
|
DeploymentInfo |
setIdentityManager(io.undertow.security.idm.IdentityManager identityManager) |
|
DeploymentInfo |
setIgnoreFlush(boolean ignoreFlush) |
|
DeploymentInfo |
setInitialSecurityWrapper(io.undertow.server.HandlerWrapper wrapper) |
Sets the initial handler wrapper that will take over responsibility for establishing
a security context that will handle authentication for the request.
|
DeploymentInfo |
setInvalidateSessionOnLogout(boolean invalidateSessionOnLogout) |
|
DeploymentInfo |
setJaspiAuthenticationMechanism(io.undertow.security.api.AuthenticationMechanism jaspiAuthenticationMechanism) |
|
DeploymentInfo |
setJspConfigDescriptor(javax.servlet.descriptor.JspConfigDescriptor jspConfigDescriptor) |
|
DeploymentInfo |
setLoginConfig(LoginConfig loginConfig) |
|
DeploymentInfo |
setMajorVersion(int majorVersion) |
|
DeploymentInfo |
setMetricsCollector(MetricsCollector metricsCollector) |
|
DeploymentInfo |
setMinorVersion(int minorVersion) |
|
DeploymentInfo |
setResourceManager(io.undertow.server.handlers.resource.ResourceManager resourceManager) |
|
DeploymentInfo |
setSecurityContextFactory(io.undertow.security.api.SecurityContextFactory securityContextFactory) |
|
DeploymentInfo |
setSecurityDisabled(boolean securityDisabled) |
|
DeploymentInfo |
setSendCustomReasonPhraseOnError(boolean sendCustomReasonPhraseOnError) |
If this is true then the message parameter of
HttpServletResponse.sendError(int, String) and
HttpServletResponse.setStatus(int, String) will be used as the HTTP reason phrase in
the response. |
DeploymentInfo |
setServerName(java.lang.String serverName) |
|
DeploymentInfo |
setServletContextAttributeBackingMap(java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Object> servletContextAttributeBackingMap) |
Sets the map that will be used by the ServletContext implementation to store attributes.
|
DeploymentInfo |
setServletSessionConfig(ServletSessionConfig servletSessionConfig) |
|
DeploymentInfo |
setServletStackTraces(ServletStackTraces servletStackTraces) |
|
DeploymentInfo |
setSessionConfigWrapper(SessionConfigWrapper sessionConfigWrapper) |
|
DeploymentInfo |
setSessionIdGenerator(io.undertow.server.session.SessionIdGenerator sessionIdGenerator) |
|
DeploymentInfo |
setSessionManagerFactory(SessionManagerFactory sessionManagerFactory) |
|
DeploymentInfo |
setSessionPersistenceManager(SessionPersistenceManager sessionPersistenceManager) |
|
DeploymentInfo |
setTempDir(java.io.File tempDir) |
|
DeploymentInfo |
setTempDir(java.nio.file.Path tempDir) |
|
DeploymentInfo |
setUrlEncoding(java.lang.String urlEncoding) |
Sets the URL encoding.
|
DeploymentInfo |
setUseCachedAuthenticationMechanism(boolean useCachedAuthenticationMechanism) |
If this is set to false the the cached authenticated session mechanism won't be installed.
|
void |
validate() |
public void validate()
public java.lang.String getDeploymentName()
public DeploymentInfo setDeploymentName(java.lang.String deploymentName)
public java.lang.String getDisplayName()
public DeploymentInfo setDisplayName(java.lang.String displayName)
public java.lang.String getContextPath()
public DeploymentInfo setContextPath(java.lang.String contextPath)
public java.lang.ClassLoader getClassLoader()
public DeploymentInfo setClassLoader(java.lang.ClassLoader classLoader)
public io.undertow.server.handlers.resource.ResourceManager getResourceManager()
public DeploymentInfo setResourceManager(io.undertow.server.handlers.resource.ResourceManager resourceManager)
public ClassIntrospecter getClassIntrospecter()
public DeploymentInfo setClassIntrospecter(ClassIntrospecter classIntrospecter)
public boolean isAllowNonStandardWrappers()
public DeploymentInfo setAllowNonStandardWrappers(boolean allowNonStandardWrappers)
public int getDefaultSessionTimeout()
public DeploymentInfo setDefaultSessionTimeout(int defaultSessionTimeout)
defaultSessionTimeout
- The default session timeout, in secondspublic java.lang.String getDefaultEncoding()
public DeploymentInfo setDefaultEncoding(java.lang.String defaultEncoding)
defaultEncoding
- The default encodingpublic java.lang.String getUrlEncoding()
public DeploymentInfo setUrlEncoding(java.lang.String urlEncoding)
UndertowOptions.DECODE_URL
parameter has been set to false. This allows multiple deployments in the same server to use a different URL encodingurlEncoding
- The encoding to usepublic DeploymentInfo addServlet(ServletInfo servlet)
public DeploymentInfo addServlets(ServletInfo... servlets)
public DeploymentInfo addServlets(java.util.Collection<ServletInfo> servlets)
public java.util.Map<java.lang.String,ServletInfo> getServlets()
public DeploymentInfo addFilter(FilterInfo filter)
public DeploymentInfo addFilters(FilterInfo... filters)
public DeploymentInfo addFilters(java.util.Collection<FilterInfo> filters)
public java.util.Map<java.lang.String,FilterInfo> getFilters()
public DeploymentInfo addFilterUrlMapping(java.lang.String filterName, java.lang.String mapping, javax.servlet.DispatcherType dispatcher)
public DeploymentInfo addFilterServletNameMapping(java.lang.String filterName, java.lang.String mapping, javax.servlet.DispatcherType dispatcher)
public DeploymentInfo insertFilterUrlMapping(int pos, java.lang.String filterName, java.lang.String mapping, javax.servlet.DispatcherType dispatcher)
public DeploymentInfo insertFilterServletNameMapping(int pos, java.lang.String filterName, java.lang.String mapping, javax.servlet.DispatcherType dispatcher)
public java.util.List<FilterMappingInfo> getFilterMappings()
public DeploymentInfo addListener(ListenerInfo listener)
public DeploymentInfo addListeners(ListenerInfo... listeners)
public DeploymentInfo addListeners(java.util.Collection<ListenerInfo> listeners)
public java.util.List<ListenerInfo> getListeners()
public int getMajorVersion()
public DeploymentInfo setMajorVersion(int majorVersion)
public int getMinorVersion()
public DeploymentInfo setMinorVersion(int minorVersion)
public DeploymentInfo addServletContainerInitalizer(ServletContainerInitializerInfo servletContainerInitializer)
public DeploymentInfo addServletContainerInitalizers(ServletContainerInitializerInfo... servletContainerInitializer)
public DeploymentInfo addServletContainerInitalizers(java.util.List<ServletContainerInitializerInfo> servletContainerInitializer)
public java.util.List<ServletContainerInitializerInfo> getServletContainerInitializers()
@Deprecated public DeploymentInfo addThreadSetupAction(ThreadSetupAction action)
public DeploymentInfo addThreadSetupAction(ThreadSetupHandler action)
public java.util.List<ThreadSetupHandler> getThreadSetupActions()
public boolean isEagerFilterInit()
public DeploymentInfo setEagerFilterInit(boolean eagerFilterInit)
public DeploymentInfo addInitParameter(java.lang.String name, java.lang.String value)
public java.util.Map<java.lang.String,java.lang.String> getInitParameters()
public DeploymentInfo addServletContextAttribute(java.lang.String name, java.lang.Object value)
public java.util.Map<java.lang.String,java.lang.Object> getServletContextAttributes()
public DeploymentInfo addWelcomePage(java.lang.String welcomePage)
public DeploymentInfo addWelcomePages(java.lang.String... welcomePages)
public DeploymentInfo addWelcomePages(java.util.Collection<java.lang.String> welcomePages)
public java.util.List<java.lang.String> getWelcomePages()
public DeploymentInfo addErrorPage(ErrorPage errorPage)
public DeploymentInfo addErrorPages(ErrorPage... errorPages)
public DeploymentInfo addErrorPages(java.util.Collection<ErrorPage> errorPages)
public java.util.List<ErrorPage> getErrorPages()
public DeploymentInfo addMimeMapping(MimeMapping mimeMappings)
public DeploymentInfo addMimeMappings(MimeMapping... mimeMappings)
public DeploymentInfo addMimeMappings(java.util.Collection<MimeMapping> mimeMappings)
public java.util.List<MimeMapping> getMimeMappings()
public DeploymentInfo addSecurityConstraint(SecurityConstraint securityConstraint)
public DeploymentInfo addSecurityConstraints(SecurityConstraint... securityConstraints)
public DeploymentInfo addSecurityConstraints(java.util.Collection<SecurityConstraint> securityConstraints)
public java.util.List<SecurityConstraint> getSecurityConstraints()
public java.util.concurrent.Executor getExecutor()
public DeploymentInfo setExecutor(java.util.concurrent.Executor executor)
Individual servlets may use a different executor
If this is null then the current executor is used, which is generally the XNIO worker pool
executor
- The executorServletInfo.executor
public java.util.concurrent.Executor getAsyncExecutor()
public DeploymentInfo setAsyncExecutor(java.util.concurrent.Executor asyncExecutor)
If this is null then executor
is used, if this is also null then the default is used
asyncExecutor
- The executorpublic java.io.File getTempDir()
public java.nio.file.Path getTempPath()
public DeploymentInfo setTempDir(java.io.File tempDir)
public DeploymentInfo setTempDir(java.nio.file.Path tempDir)
public boolean isIgnoreFlush()
public DeploymentInfo setIgnoreFlush(boolean ignoreFlush)
public javax.servlet.descriptor.JspConfigDescriptor getJspConfigDescriptor()
public DeploymentInfo setJspConfigDescriptor(javax.servlet.descriptor.JspConfigDescriptor jspConfigDescriptor)
public DefaultServletConfig getDefaultServletConfig()
public DeploymentInfo setDefaultServletConfig(DefaultServletConfig defaultServletConfig)
public DeploymentInfo addLocaleCharsetMapping(java.lang.String locale, java.lang.String charset)
public java.util.Map<java.lang.String,java.lang.String> getLocaleCharsetMapping()
public SessionManagerFactory getSessionManagerFactory()
public DeploymentInfo setSessionManagerFactory(SessionManagerFactory sessionManagerFactory)
public LoginConfig getLoginConfig()
public DeploymentInfo setLoginConfig(LoginConfig loginConfig)
public io.undertow.security.idm.IdentityManager getIdentityManager()
public DeploymentInfo setIdentityManager(io.undertow.security.idm.IdentityManager identityManager)
public ConfidentialPortManager getConfidentialPortManager()
public DeploymentInfo setConfidentialPortManager(ConfidentialPortManager confidentialPortManager)
public DeploymentInfo addSecurityRole(java.lang.String role)
public DeploymentInfo addSecurityRoles(java.lang.String... roles)
public DeploymentInfo addSecurityRoles(java.util.Collection<java.lang.String> roles)
public java.util.Set<java.lang.String> getSecurityRoles()
public DeploymentInfo addOuterHandlerChainWrapper(io.undertow.server.HandlerWrapper wrapper)
wrapper
- The wrapperpublic java.util.List<io.undertow.server.HandlerWrapper> getOuterHandlerChainWrappers()
public DeploymentInfo addInnerHandlerChainWrapper(io.undertow.server.HandlerWrapper wrapper)
wrapper
- The wrapperpublic java.util.List<io.undertow.server.HandlerWrapper> getInnerHandlerChainWrappers()
public DeploymentInfo addInitialHandlerChainWrapper(io.undertow.server.HandlerWrapper wrapper)
public java.util.List<io.undertow.server.HandlerWrapper> getInitialHandlerChainWrappers()
public DeploymentInfo setInitialSecurityWrapper(io.undertow.server.HandlerWrapper wrapper)
SecurityContext.authenticate()
as required.wrapper
- the HandlerWrapper
to handle the initial security context installation.this
to allow chaining.public io.undertow.server.HandlerWrapper getInitialSecurityWrapper()
public DeploymentInfo addSecurityWrapper(io.undertow.server.HandlerWrapper wrapper)
wrapper
- public java.util.List<io.undertow.server.HandlerWrapper> getSecurityWrappers()
public DeploymentInfo addNotificationReceiver(io.undertow.security.api.NotificationReceiver notificationReceiver)
public DeploymentInfo addNotificactionReceivers(io.undertow.security.api.NotificationReceiver... notificationReceivers)
public DeploymentInfo addNotificationReceivers(java.util.Collection<io.undertow.security.api.NotificationReceiver> notificationReceivers)
public java.util.List<io.undertow.security.api.NotificationReceiver> getNotificationReceivers()
public java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Object> getServletContextAttributeBackingMap()
public DeploymentInfo setServletContextAttributeBackingMap(java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Object> servletContextAttributeBackingMap)
This should usuablly be null, in which case Undertow will create a new map. This is only used in situations where you want multiple deployments to share the same servlet context attributes.
servletContextAttributeBackingMap
- The backing mappublic ServletSessionConfig getServletSessionConfig()
public DeploymentInfo setServletSessionConfig(ServletSessionConfig servletSessionConfig)
public java.lang.String getHostName()
public DeploymentInfo setHostName(java.lang.String hostName)
public boolean isDenyUncoveredHttpMethods()
public DeploymentInfo setDenyUncoveredHttpMethods(boolean denyUncoveredHttpMethods)
public ServletStackTraces getServletStackTraces()
public DeploymentInfo setServletStackTraces(ServletStackTraces servletStackTraces)
public boolean isInvalidateSessionOnLogout()
public DeploymentInfo setInvalidateSessionOnLogout(boolean invalidateSessionOnLogout)
public int getDefaultCookieVersion()
public DeploymentInfo setDefaultCookieVersion(int defaultCookieVersion)
public SessionPersistenceManager getSessionPersistenceManager()
public DeploymentInfo setSessionPersistenceManager(SessionPersistenceManager sessionPersistenceManager)
public AuthorizationManager getAuthorizationManager()
public DeploymentInfo setAuthorizationManager(AuthorizationManager authorizationManager)
public DeploymentInfo addPrincipalVsRoleMapping(java.lang.String principal, java.lang.String mapping)
public DeploymentInfo addPrincipalVsRoleMappings(java.lang.String principal, java.lang.String... mappings)
public DeploymentInfo addPrincipalVsRoleMappings(java.lang.String principal, java.util.Collection<java.lang.String> mappings)
public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getPrincipalVersusRolesMap()
public DeploymentInfo clearLoginMethods()
public DeploymentInfo addFirstAuthenticationMechanism(java.lang.String name, io.undertow.security.api.AuthenticationMechanism mechanism)
addAuthenticationMechanism(String, io.undertow.security.api.AuthenticationMechanismFactory)
and allow the user to configure the methods they want by name.
This method is essentially a convenience method, if is the same as registering a factory under the provided name that returns
and authentication mechanism, and then adding it to the login config list.
If you want your mechanism to be the only one in the deployment you should first invoke clearLoginMethods()
.name
- The authentication mechanism namemechanism
- The mechanismpublic DeploymentInfo addLastAuthenticationMechanism(java.lang.String name, io.undertow.security.api.AuthenticationMechanism mechanism)
addAuthenticationMechanism(String, io.undertow.security.api.AuthenticationMechanismFactory)
and allow the user to configure the methods they want by name.
This method is essentially a convenience method, if is the same as registering a factory under the provided name that returns
and authentication mechanism, and then adding it to the login config list.
If you want your mechanism to be the only one in the deployment you should first invoke clearLoginMethods()
.name
- The authentication mechanism namemechanism
- The mechanismpublic DeploymentInfo addAuthenticationMechanism(java.lang.String name, io.undertow.security.api.AuthenticationMechanismFactory factory)
name
- The namefactory
- The factorypublic java.util.Map<java.lang.String,io.undertow.security.api.AuthenticationMechanismFactory> getAuthenticationMechanisms()
public boolean isAuthenticationMechanismPresent(java.lang.String mechanismName)
mechanismName
- The mechanism namepublic DeploymentInfo addServletExtension(ServletExtension servletExtension)
servletExtension
- The servlet extensionpublic java.util.List<ServletExtension> getServletExtensions()
public io.undertow.security.api.AuthenticationMechanism getJaspiAuthenticationMechanism()
public DeploymentInfo setJaspiAuthenticationMechanism(io.undertow.security.api.AuthenticationMechanism jaspiAuthenticationMechanism)
public io.undertow.security.api.SecurityContextFactory getSecurityContextFactory()
public DeploymentInfo setSecurityContextFactory(io.undertow.security.api.SecurityContextFactory securityContextFactory)
public java.lang.String getServerName()
public DeploymentInfo setServerName(java.lang.String serverName)
public DeploymentInfo setMetricsCollector(MetricsCollector metricsCollector)
public MetricsCollector getMetricsCollector()
public SessionConfigWrapper getSessionConfigWrapper()
public DeploymentInfo setSessionConfigWrapper(SessionConfigWrapper sessionConfigWrapper)
public boolean isDisableCachingForSecuredPages()
public DeploymentInfo setDisableCachingForSecuredPages(boolean disableCachingForSecuredPages)
public DeploymentInfo addLifecycleInterceptor(LifecycleInterceptor interceptor)
public java.util.List<LifecycleInterceptor> getLifecycleInterceptors()
public ExceptionHandler getExceptionHandler()
public DeploymentInfo setExceptionHandler(ExceptionHandler exceptionHandler)
exceptionHandler
- The exception handlerpublic boolean isEscapeErrorMessage()
public DeploymentInfo setEscapeErrorMessage(boolean escapeErrorMessage)
HttpServletResponse.sendError(int, String)
should be escaped.
If this is false applications must be careful not to use user provided data (such as the URI) in the messageescapeErrorMessage
- If the error message should be escapedpublic DeploymentInfo addSessionListener(io.undertow.server.session.SessionListener sessionListener)
public java.util.List<io.undertow.server.session.SessionListener> getSessionListeners()
public io.undertow.security.api.AuthenticationMode getAuthenticationMode()
public DeploymentInfo setAuthenticationMode(io.undertow.security.api.AuthenticationMode authenticationMode)
authenticationMode
- The authentication mode to usepublic javax.servlet.MultipartConfigElement getDefaultMultipartConfig()
public DeploymentInfo setDefaultMultipartConfig(javax.servlet.MultipartConfigElement defaultMultipartConfig)
public int getContentTypeCacheSize()
public DeploymentInfo setContentTypeCacheSize(int contentTypeCacheSize)
public io.undertow.server.session.SessionIdGenerator getSessionIdGenerator()
public DeploymentInfo setSessionIdGenerator(io.undertow.server.session.SessionIdGenerator sessionIdGenerator)
public boolean isSendCustomReasonPhraseOnError()
public CrawlerSessionManagerConfig getCrawlerSessionManagerConfig()
public DeploymentInfo setCrawlerSessionManagerConfig(CrawlerSessionManagerConfig crawlerSessionManagerConfig)
public DeploymentInfo setSendCustomReasonPhraseOnError(boolean sendCustomReasonPhraseOnError)
HttpServletResponse.sendError(int, String)
and
HttpServletResponse.setStatus(int, String)
will be used as the HTTP reason phrase in
the response.sendCustomReasonPhraseOnError
- If the parameter to sendError should be used as a HTTP reason phrasepublic boolean isChangeSessionIdOnLogin()
public DeploymentInfo setChangeSessionIdOnLogin(boolean changeSessionIdOnLogin)
public boolean isUseCachedAuthenticationMechanism()
public DeploymentInfo setUseCachedAuthenticationMechanism(boolean useCachedAuthenticationMechanism)
useCachedAuthenticationMechanism
- If Undertow should use its internal authentication cache mechanismpublic boolean isSecurityDisabled()
public DeploymentInfo setSecurityDisabled(boolean securityDisabled)
public boolean isCheckOtherSessionManagers()
public DeploymentInfo setCheckOtherSessionManagers(boolean checkOtherSessionManagers)
public DeploymentInfo addPreCompressedResourceEncoding(java.lang.String encoding, java.lang.String extension)
encoding
- The content encodingextension
- The file extensionpublic java.util.Map<java.lang.String,java.lang.String> getPreCompressedResources()
public DeploymentInfo clone()
clone
in class java.lang.Object
Copyright © 2018. All rights reserved.