Package io.undertow.servlet.api
Class DeploymentInfo
java.lang.Object
io.undertow.servlet.api.DeploymentInfo
- All Implemented Interfaces:
Cloneable
Represents a servlet deployment.
- Author:
- Stuart Douglas
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAuthenticationMechanism
(String name, io.undertow.security.api.AuthenticationMechanismFactory factory) Adds an authentication mechanism.addDeploymentCompleteListener
(javax.servlet.ServletContextListener servletContextListener) Add's a listener that is only invoked once all other deployment steps have been completed The listenerscontextDestroyed
method will be called after all undeployment steps are undertakenaddErrorPage
(ErrorPage errorPage) addErrorPages
(ErrorPage... errorPages) addErrorPages
(Collection<ErrorPage> errorPages) addFilter
(FilterInfo filter) addFilters
(FilterInfo... filters) addFilters
(Collection<FilterInfo> filters) addFilterServletNameMapping
(String filterName, String mapping, javax.servlet.DispatcherType dispatcher) addFilterUrlMapping
(String filterName, String mapping, javax.servlet.DispatcherType dispatcher) addFirstAuthenticationMechanism
(String name, io.undertow.security.api.AuthenticationMechanism mechanism) Adds an authentication mechanism directly to the deployment.addInitialHandlerChainWrapper
(io.undertow.server.HandlerWrapper wrapper) addInitParameter
(String name, String value) addInnerHandlerChainWrapper
(io.undertow.server.HandlerWrapper wrapper) Adds an inner handler chain wrapper.addLastAuthenticationMechanism
(String name, io.undertow.security.api.AuthenticationMechanism mechanism) Adds an authentication mechanism directly to the deployment.addLifecycleInterceptor
(LifecycleInterceptor interceptor) addListener
(ListenerInfo listener) addListeners
(ListenerInfo... listeners) addListeners
(Collection<ListenerInfo> listeners) addLocaleCharsetMapping
(String locale, String charset) addMimeMapping
(MimeMapping mimeMappings) addMimeMappings
(MimeMapping... mimeMappings) addMimeMappings
(Collection<MimeMapping> mimeMappings) addNotificactionReceivers
(io.undertow.security.api.NotificationReceiver... notificationReceivers) addNotificationReceiver
(io.undertow.security.api.NotificationReceiver notificationReceiver) addNotificationReceivers
(Collection<io.undertow.security.api.NotificationReceiver> notificationReceivers) addOuterHandlerChainWrapper
(io.undertow.server.HandlerWrapper wrapper) Adds an outer handler wrapper.addPreCompressedResourceEncoding
(String encoding, String extension) Adds a pre compressed resource encoding and maps it to a file extensionaddPrincipalVsRoleMapping
(String principal, String mapping) addPrincipalVsRoleMappings
(String principal, String... mappings) addPrincipalVsRoleMappings
(String principal, Collection<String> mappings) addSecurityConstraint
(SecurityConstraint securityConstraint) addSecurityConstraints
(SecurityConstraint... securityConstraints) addSecurityConstraints
(Collection<SecurityConstraint> securityConstraints) addSecurityRole
(String role) addSecurityRoles
(String... roles) addSecurityRoles
(Collection<String> roles) addSecurityWrapper
(io.undertow.server.HandlerWrapper wrapper) Adds a security handler.addServlet
(ServletInfo servlet) addServletContainerInitalizer
(ServletContainerInitializerInfo servletContainerInitializer) Deprecated.addServletContainerInitalizers
(ServletContainerInitializerInfo... servletContainerInitializer) Deprecated.addServletContainerInitalizers
(List<ServletContainerInitializerInfo> servletContainerInitializers) Deprecated.addServletContainerInitializer
(ServletContainerInitializerInfo servletContainerInitializer) addServletContainerInitializers
(ServletContainerInitializerInfo... servletContainerInitializer) addServletContainerInitializers
(List<ServletContainerInitializerInfo> servletContainerInitializer) addServletContextAttribute
(String name, Object value) addServletExtension
(ServletExtension servletExtension) Adds an additional servlet extension to the deployment.addServlets
(ServletInfo... servlets) addServlets
(Collection<ServletInfo> servlets) addSessionListener
(io.undertow.server.session.SessionListener sessionListener) Deprecated.addWelcomePage
(String welcomePage) addWelcomePages
(String... welcomePages) addWelcomePages
(Collection<String> welcomePages) Removes all configured authentication mechanisms from the deployment.clone()
io.undertow.security.api.AuthenticationMode
int
int
int
int
javax.servlet.MultipartConfigElement
int
List<javax.servlet.ServletContextListener>
Returns the exception handler that is used by this deployment.io.undertow.security.idm.IdentityManager
List<io.undertow.server.HandlerWrapper>
io.undertow.server.HandlerWrapper
List<io.undertow.server.HandlerWrapper>
io.undertow.security.api.AuthenticationMechanism
javax.servlet.descriptor.JspConfigDescriptor
int
int
List<io.undertow.security.api.NotificationReceiver>
List<io.undertow.server.HandlerWrapper>
io.undertow.server.handlers.resource.ResourceManager
io.undertow.security.api.SecurityContextFactory
List<io.undertow.server.HandlerWrapper>
io.undertow.server.session.SessionIdGenerator
List<io.undertow.server.session.SessionListener>
insertFilterServletNameMapping
(int pos, String filterName, String mapping, javax.servlet.DispatcherType dispatcher) insertFilterUrlMapping
(int pos, String filterName, String mapping, javax.servlet.DispatcherType dispatcher) boolean
boolean
isAuthenticationMechanismPresent
(String mechanismName) Returns true if the specified mechanism is present in the login configboolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
setAllowNonStandardWrappers
(boolean allowNonStandardWrappers) setAsyncExecutor
(Executor asyncExecutor) Sets the executor that is used to run async tasks.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.setAuthorizationManager
(AuthorizationManager authorizationManager) setChangeSessionIdOnLogin
(boolean changeSessionIdOnLogin) 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.setClassIntrospecter
(ClassIntrospecter classIntrospecter) setClassLoader
(ClassLoader classLoader) setConfidentialPortManager
(ConfidentialPortManager confidentialPortManager) setContainerMajorVersion
(int containerMajorVersion) setContainerMinorVersion
(int containerMinorVersion) setContentTypeCacheSize
(int contentTypeCacheSize) setContextPath
(String contextPath) setCrawlerSessionManagerConfig
(CrawlerSessionManagerConfig crawlerSessionManagerConfig) setDefaultCookieVersion
(int defaultCookieVersion) setDefaultEncoding
(String defaultEncoding) Sets the default encoding that will be used for servlet responsessetDefaultMultipartConfig
(javax.servlet.MultipartConfigElement defaultMultipartConfig) setDefaultRequestEncoding
(String defaultRequestEncoding) setDefaultResponseEncoding
(String defaultResponseEncoding) setDefaultServletConfig
(DefaultServletConfig defaultServletConfig) setDefaultSessionTimeout
(int defaultSessionTimeout) setDenyUncoveredHttpMethods
(boolean denyUncoveredHttpMethods) setDeploymentName
(String deploymentName) setDisableCachingForSecuredPages
(boolean disableCachingForSecuredPages) setDisplayName
(String displayName) setEagerFilterInit
(boolean eagerFilterInit) setEscapeErrorMessage
(boolean escapeErrorMessage) Set if if the message passed toHttpServletResponse.sendError(int, String)
should be escaped.setExceptionHandler
(ExceptionHandler exceptionHandler) Sets the default exception handler for this deploymentsetExecutor
(Executor executor) Sets the executor that will be used to run servlet invocations.setHostName
(String hostName) setIdentityManager
(io.undertow.security.idm.IdentityManager identityManager) setIgnoreFlush
(boolean ignoreFlush) 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.setInvalidateSessionOnLogout
(boolean invalidateSessionOnLogout) setJaspiAuthenticationMechanism
(io.undertow.security.api.AuthenticationMechanism jaspiAuthenticationMechanism) setJspConfigDescriptor
(javax.servlet.descriptor.JspConfigDescriptor jspConfigDescriptor) setLoginConfig
(LoginConfig loginConfig) setMajorVersion
(int majorVersion) setMetricsCollector
(MetricsCollector metricsCollector) setMinorVersion
(int minorVersion) void
setPreservePathOnForward
(boolean preservePathOnForward) setResourceManager
(io.undertow.server.handlers.resource.ResourceManager resourceManager) setSecurityContextFactory
(io.undertow.security.api.SecurityContextFactory securityContextFactory) setSecurityDisabled
(boolean securityDisabled) setSendCustomReasonPhraseOnError
(boolean sendCustomReasonPhraseOnError) If this is true then the message parameter ofHttpServletResponse.sendError(int, String)
andHttpServletResponse.setStatus(int, String)
will be used as the HTTP reason phrase in the response.setServerName
(String serverName) setServletContextAttributeBackingMap
(ConcurrentMap<String, Object> servletContextAttributeBackingMap) Sets the map that will be used by the ServletContext implementation to store attributes.setServletSessionConfig
(ServletSessionConfig servletSessionConfig) setServletStackTraces
(ServletStackTraces servletStackTraces) setSessionConfigWrapper
(SessionConfigWrapper sessionConfigWrapper) setSessionIdGenerator
(io.undertow.server.session.SessionIdGenerator sessionIdGenerator) setSessionManagerFactory
(SessionManagerFactory sessionManagerFactory) setSessionPersistenceManager
(SessionPersistenceManager sessionPersistenceManager) setTempDir
(File tempDir) setTempDir
(Path tempDir) setUrlEncoding
(String urlEncoding) Sets the URL encoding.setUseCachedAuthenticationMechanism
(boolean useCachedAuthenticationMechanism) If this is set to false the the cached authenticated session mechanism won't be installed.void
validate()
-
Constructor Details
-
DeploymentInfo
public DeploymentInfo()
-
-
Method Details
-
validate
public void validate() -
getDeploymentName
-
setDeploymentName
-
getDisplayName
-
setDisplayName
-
getContextPath
-
setContextPath
-
getClassLoader
-
setClassLoader
-
getResourceManager
public io.undertow.server.handlers.resource.ResourceManager getResourceManager() -
setResourceManager
public DeploymentInfo setResourceManager(io.undertow.server.handlers.resource.ResourceManager resourceManager) -
getClassIntrospecter
-
setClassIntrospecter
-
isAllowNonStandardWrappers
public boolean isAllowNonStandardWrappers() -
setAllowNonStandardWrappers
-
getDefaultSessionTimeout
public int getDefaultSessionTimeout() -
setDefaultSessionTimeout
- Parameters:
defaultSessionTimeout
- The default session timeout, in seconds
-
getDefaultEncoding
-
setDefaultEncoding
Sets the default encoding that will be used for servlet responses- Parameters:
defaultEncoding
- The default encoding
-
getUrlEncoding
-
setUrlEncoding
Sets the URL encoding. This will only take effect if theUndertowOptions.DECODE_URL
parameter has been set to false. This allows multiple deployments in the same server to use a different URL encoding- Parameters:
urlEncoding
- The encoding to use
-
addServlet
-
addServlets
-
addServlets
-
getServlets
-
addFilter
-
addFilters
-
addFilters
-
getFilters
-
addFilterUrlMapping
public DeploymentInfo addFilterUrlMapping(String filterName, String mapping, javax.servlet.DispatcherType dispatcher) -
addFilterServletNameMapping
public DeploymentInfo addFilterServletNameMapping(String filterName, String mapping, javax.servlet.DispatcherType dispatcher) -
insertFilterUrlMapping
public DeploymentInfo insertFilterUrlMapping(int pos, String filterName, String mapping, javax.servlet.DispatcherType dispatcher) -
insertFilterServletNameMapping
public DeploymentInfo insertFilterServletNameMapping(int pos, String filterName, String mapping, javax.servlet.DispatcherType dispatcher) -
getFilterMappings
-
addListener
-
addListeners
-
addListeners
-
getListeners
-
getMajorVersion
public int getMajorVersion() -
setMajorVersion
-
getMinorVersion
public int getMinorVersion() -
setMinorVersion
-
addServletContainerInitializer
public DeploymentInfo addServletContainerInitializer(ServletContainerInitializerInfo servletContainerInitializer) -
addServletContainerInitalizer
@Deprecated public DeploymentInfo addServletContainerInitalizer(ServletContainerInitializerInfo servletContainerInitializer) Deprecated. -
addServletContainerInitializers
public DeploymentInfo addServletContainerInitializers(ServletContainerInitializerInfo... servletContainerInitializer) -
addServletContainerInitalizers
@Deprecated public DeploymentInfo addServletContainerInitalizers(ServletContainerInitializerInfo... servletContainerInitializer) Deprecated. -
addServletContainerInitializers
public DeploymentInfo addServletContainerInitializers(List<ServletContainerInitializerInfo> servletContainerInitializer) -
addServletContainerInitalizers
@Deprecated public DeploymentInfo addServletContainerInitalizers(List<ServletContainerInitializerInfo> servletContainerInitializers) Deprecated. -
getServletContainerInitializers
-
addThreadSetupAction
Deprecated. -
addThreadSetupAction
-
getThreadSetupActions
-
isEagerFilterInit
public boolean isEagerFilterInit() -
setEagerFilterInit
-
addInitParameter
-
getInitParameters
-
addServletContextAttribute
-
getServletContextAttributes
-
addWelcomePage
-
addWelcomePages
-
addWelcomePages
-
getWelcomePages
-
addErrorPage
-
addErrorPages
-
addErrorPages
-
getErrorPages
-
addMimeMapping
-
addMimeMappings
-
addMimeMappings
-
getMimeMappings
-
addSecurityConstraint
-
addSecurityConstraints
-
addSecurityConstraints
-
getSecurityConstraints
-
getExecutor
-
setExecutor
Sets the executor that will be used to run servlet invocations. If this is null then the XNIO worker pool will be used.Individual servlets may use a different executor
If this is null then the current executor is used, which is generally the XNIO worker pool
- Parameters:
executor
- The executor- See Also:
-
ServletInfo.executor
-
getAsyncExecutor
-
setAsyncExecutor
Sets the executor that is used to run async tasks.If this is null then
executor
is used, if this is also null then the default is used- Parameters:
asyncExecutor
- The executor
-
getTempDir
-
getTempPath
-
requireTempPath
- Returns:
- Returns the
temp directory path
if it's not null, else returns the system level temporary directory path pointed to by the Java system propertyjava.io.tmpdir
-
setTempDir
-
setTempDir
-
isIgnoreFlush
public boolean isIgnoreFlush() -
setIgnoreFlush
-
getJspConfigDescriptor
public javax.servlet.descriptor.JspConfigDescriptor getJspConfigDescriptor() -
setJspConfigDescriptor
public DeploymentInfo setJspConfigDescriptor(javax.servlet.descriptor.JspConfigDescriptor jspConfigDescriptor) -
getDefaultServletConfig
-
setDefaultServletConfig
-
addLocaleCharsetMapping
-
getLocaleCharsetMapping
-
getSessionManagerFactory
-
setSessionManagerFactory
-
getLoginConfig
-
setLoginConfig
-
getIdentityManager
public io.undertow.security.idm.IdentityManager getIdentityManager() -
setIdentityManager
-
getConfidentialPortManager
-
setConfidentialPortManager
-
addSecurityRole
-
addSecurityRoles
-
addSecurityRoles
-
getSecurityRoles
-
addOuterHandlerChainWrapper
Adds an outer handler wrapper. This handler will be run after the servlet initial handler, but before any other handlers. These are only run on REQUEST invocations, they are not invoked on a FORWARD or INCLUDE.- Parameters:
wrapper
- The wrapper
-
getOuterHandlerChainWrappers
-
addInnerHandlerChainWrapper
Adds an inner handler chain wrapper. This handler will be run after the security handler, but before any other servlet handlers, and will be run for every request- Parameters:
wrapper
- The wrapper
-
getInnerHandlerChainWrappers
-
addInitialHandlerChainWrapper
-
getInitialHandlerChainWrappers
-
setInitialSecurityWrapper
Sets the initial handler wrapper that will take over responsibility for establishing a security context that will handle authentication for the request. Undertow specific authentication mechanisms will not be installed but Undertow handlers will still make the decision as to if authentication is required and will subsequently callSecurityContext.authenticate()
as required.- Parameters:
wrapper
- theHandlerWrapper
to handle the initial security context installation.- Returns:
this
to allow chaining.
-
getInitialSecurityWrapper
public io.undertow.server.HandlerWrapper getInitialSecurityWrapper() -
addSecurityWrapper
Adds a security handler. These are invoked before the authentication mechanism, and are always invoked even if authentication is not required.- Parameters:
wrapper
-- Returns:
-
getSecurityWrappers
-
addNotificationReceiver
public DeploymentInfo addNotificationReceiver(io.undertow.security.api.NotificationReceiver notificationReceiver) -
addNotificactionReceivers
public DeploymentInfo addNotificactionReceivers(io.undertow.security.api.NotificationReceiver... notificationReceivers) -
addNotificationReceivers
public DeploymentInfo addNotificationReceivers(Collection<io.undertow.security.api.NotificationReceiver> notificationReceivers) -
getNotificationReceivers
-
getServletContextAttributeBackingMap
-
setServletContextAttributeBackingMap
public DeploymentInfo setServletContextAttributeBackingMap(ConcurrentMap<String, Object> servletContextAttributeBackingMap) Sets the map that will be used by the ServletContext implementation to store attributes.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.
- Parameters:
servletContextAttributeBackingMap
- The backing map
-
getServletSessionConfig
-
setServletSessionConfig
-
getHostName
- Returns:
- the host name
-
setHostName
-
isDenyUncoveredHttpMethods
public boolean isDenyUncoveredHttpMethods() -
setDenyUncoveredHttpMethods
-
getServletStackTraces
-
setServletStackTraces
-
isInvalidateSessionOnLogout
public boolean isInvalidateSessionOnLogout() -
setInvalidateSessionOnLogout
-
getDefaultCookieVersion
public int getDefaultCookieVersion() -
setDefaultCookieVersion
-
getSessionPersistenceManager
-
setSessionPersistenceManager
public DeploymentInfo setSessionPersistenceManager(SessionPersistenceManager sessionPersistenceManager) -
getAuthorizationManager
-
setAuthorizationManager
-
addPrincipalVsRoleMapping
-
addPrincipalVsRoleMappings
-
addPrincipalVsRoleMappings
-
getPrincipalVersusRolesMap
-
clearLoginMethods
Removes all configured authentication mechanisms from the deployment.- Returns:
- this deployment info
-
addFirstAuthenticationMechanism
public DeploymentInfo addFirstAuthenticationMechanism(String name, io.undertow.security.api.AuthenticationMechanism mechanism) Adds an authentication mechanism directly to the deployment. This mechanism will be first in the list. In general you should just useaddAuthenticationMechanism(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 invokeclearLoginMethods()
.- Parameters:
name
- The authentication mechanism namemechanism
- The mechanism- Returns:
- this deployment info
-
addLastAuthenticationMechanism
public DeploymentInfo addLastAuthenticationMechanism(String name, io.undertow.security.api.AuthenticationMechanism mechanism) Adds an authentication mechanism directly to the deployment. This mechanism will be last in the list. In general you should just useaddAuthenticationMechanism(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 invokeclearLoginMethods()
.- Parameters:
name
- The authentication mechanism namemechanism
- The mechanism- Returns:
-
addAuthenticationMechanism
public DeploymentInfo addAuthenticationMechanism(String name, io.undertow.security.api.AuthenticationMechanismFactory factory) Adds an authentication mechanism. The name is case insenstive, and will be converted to uppercase internally.- Parameters:
name
- The namefactory
- The factory- Returns:
-
getAuthenticationMechanisms
-
isAuthenticationMechanismPresent
Returns true if the specified mechanism is present in the login config- Parameters:
mechanismName
- The mechanism name- Returns:
- true if the mechanism is enabled
-
addServletExtension
Adds an additional servlet extension to the deployment. Servlet extensions are generally discovered using META-INF/services entries, however this may not be practical in all environments.- Parameters:
servletExtension
- The servlet extension- Returns:
- this
-
getServletExtensions
-
getJaspiAuthenticationMechanism
public io.undertow.security.api.AuthenticationMechanism getJaspiAuthenticationMechanism() -
setJaspiAuthenticationMechanism
public DeploymentInfo setJaspiAuthenticationMechanism(io.undertow.security.api.AuthenticationMechanism jaspiAuthenticationMechanism) -
getSecurityContextFactory
public io.undertow.security.api.SecurityContextFactory getSecurityContextFactory() -
setSecurityContextFactory
public DeploymentInfo setSecurityContextFactory(io.undertow.security.api.SecurityContextFactory securityContextFactory) -
getServerName
-
setServerName
-
setMetricsCollector
-
getMetricsCollector
-
getSessionConfigWrapper
-
setSessionConfigWrapper
-
isDisableCachingForSecuredPages
public boolean isDisableCachingForSecuredPages() -
setDisableCachingForSecuredPages
-
addLifecycleInterceptor
-
getLifecycleInterceptors
-
getExceptionHandler
Returns the exception handler that is used by this deployment. By default this will simply log unhandled exceptions -
setExceptionHandler
Sets the default exception handler for this deployment- Parameters:
exceptionHandler
- The exception handler- Returns:
-
isEscapeErrorMessage
public boolean isEscapeErrorMessage() -
setEscapeErrorMessage
Set if if the message passed toHttpServletResponse.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 message- Parameters:
escapeErrorMessage
- If the error message should be escaped
-
addSessionListener
public DeploymentInfo addSessionListener(io.undertow.server.session.SessionListener sessionListener) -
getSessionListeners
-
getAuthenticationMode
public io.undertow.security.api.AuthenticationMode getAuthenticationMode() -
setAuthenticationMode
public 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. Pro active auth means that requests for unprotected resources will still be associated with a user, which may be useful for access logging.- Parameters:
authenticationMode
- The authentication mode to use- Returns:
-
getDefaultMultipartConfig
public javax.servlet.MultipartConfigElement getDefaultMultipartConfig() -
setDefaultMultipartConfig
public DeploymentInfo setDefaultMultipartConfig(javax.servlet.MultipartConfigElement defaultMultipartConfig) -
getContentTypeCacheSize
public int getContentTypeCacheSize() -
setContentTypeCacheSize
-
getSessionIdGenerator
public io.undertow.server.session.SessionIdGenerator getSessionIdGenerator() -
setSessionIdGenerator
public DeploymentInfo setSessionIdGenerator(io.undertow.server.session.SessionIdGenerator sessionIdGenerator) -
isSendCustomReasonPhraseOnError
public boolean isSendCustomReasonPhraseOnError() -
getCrawlerSessionManagerConfig
-
setCrawlerSessionManagerConfig
public DeploymentInfo setCrawlerSessionManagerConfig(CrawlerSessionManagerConfig crawlerSessionManagerConfig) -
setSendCustomReasonPhraseOnError
If this is true then the message parameter ofHttpServletResponse.sendError(int, String)
andHttpServletResponse.setStatus(int, String)
will be used as the HTTP reason phrase in the response.- Parameters:
sendCustomReasonPhraseOnError
- If the parameter to sendError should be used as a HTTP reason phrase- Returns:
- this
-
isChangeSessionIdOnLogin
public boolean isChangeSessionIdOnLogin() -
setChangeSessionIdOnLogin
-
isUseCachedAuthenticationMechanism
public boolean isUseCachedAuthenticationMechanism() -
setUseCachedAuthenticationMechanism
If this is set to false the the cached authenticated session mechanism won't be installed. If you want FORM and other auth methods that require caching to work then you need to install another caching based auth method (such as SSO).- Parameters:
useCachedAuthenticationMechanism
- If Undertow should use its internal authentication cache mechanism- Returns:
- this
-
isSecurityDisabled
public boolean isSecurityDisabled() -
setSecurityDisabled
-
isCheckOtherSessionManagers
public boolean isCheckOtherSessionManagers() -
setCheckOtherSessionManagers
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. If it does then the session id will be re-used. -
getDefaultRequestEncoding
-
setDefaultRequestEncoding
-
getDefaultResponseEncoding
-
setDefaultResponseEncoding
-
addPreCompressedResourceEncoding
Adds a pre compressed resource encoding and maps it to a file extension- Parameters:
encoding
- The content encodingextension
- The file extension- Returns:
- this builder
-
getPreCompressedResources
-
getContainerMajorVersion
public int getContainerMajorVersion() -
setContainerMajorVersion
-
getContainerMinorVersion
public int getContainerMinorVersion() -
setContainerMinorVersion
-
isPreservePathOnForward
public boolean isPreservePathOnForward() -
setPreservePathOnForward
public void setPreservePathOnForward(boolean preservePathOnForward) -
addDeploymentCompleteListener
public DeploymentInfo addDeploymentCompleteListener(javax.servlet.ServletContextListener servletContextListener) Add's a listener that is only invoked once all other deployment steps have been completed The listenerscontextDestroyed
method will be called after all undeployment steps are undertaken- Parameters:
servletContextListener
-- Returns:
-
getDeploymentCompleteListeners
-
clone
-