UndertowServletWebServerFactory

ServletWebServerFactory that can be used to create UndertowServletWebServers.

Unless explicitly configured otherwise, the factory will create servers that listen for HTTP requests on port 8080.

Author

Ivan Sopov

Andy Wilkinson

Marcos Barbero

Eddú Meléndez

Scott Frederick

Since

2.0.0

See also

Constructors

Link copied to clipboard
constructor()
Create a new UndertowServletWebServerFactory instance.
constructor(port: Int)
Create a new UndertowServletWebServerFactory that listens for requests using the specified port.
constructor(contextPath: String, port: Int)
Create a new UndertowServletWebServerFactory with the specified context path and port.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var http2: Http2
Link copied to clipboard
Link copied to clipboard
open var jsp: Jsp
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var port: Int
Link copied to clipboard
Link copied to clipboard
open var session: Session
Link copied to clipboard
open var shutdown: Shutdown
Link copied to clipboard
open var ssl: Ssl
Link copied to clipboard

Functions

Link copied to clipboard
Add UndertowBuilderCustomizers that should be used to customize the Undertow Builder.
Link copied to clipboard
open fun addCookieSameSiteSuppliers(cookieSameSiteSuppliers: Array<CookieSameSiteSupplier>)
Add CookieSameSiteSuppliers to those that should be used to obtain the SameSite attribute of any added cookie.
Link copied to clipboard
Add UndertowDeploymentInfoCustomizers that should be used to customize the Undertow DeploymentInfo.
Link copied to clipboard
open fun addErrorPages(errorPages: Array<ErrorPage>)
Adds error pages that will be used when handling exceptions.
Link copied to clipboard
Add ServletContextInitializers to those that should be applied in addition to getWebServer parameters.
Link copied to clipboard
open fun addMimeMappings(mimeMappings: MimeMappings)
Adds mime-type mappings.
Link copied to clipboard
open fun addWebListeners(webListenerClassNames: Array<String>)
Adds web listeners that will be registered with the servlet container.
Link copied to clipboard
Link copied to clipboard
Returns a mutable collection of the UndertowBuilderCustomizers that will be applied to the Undertow Builder.
Link copied to clipboard
Returns a mutable collection of the UndertowDeploymentInfoCustomizers that will be applied to the Undertow DeploymentInfo.
Link copied to clipboard
open fun getDocumentRoot(): File
Returns the document root which will be used by the web context to serve static files.
Link copied to clipboard
Gets a new fully configured but paused WebServer instance.
Link copied to clipboard
Link copied to clipboard
Return if filters should be eagerly initialized.
Link copied to clipboard
Return whether the request path should be preserved on forward.
Link copied to clipboard
Flag to indicate that the default servlet should be registered.
Link copied to clipboard
open fun setAccessLogDirectory(accessLogDirectory: File)
Set the access log directory.
Link copied to clipboard
open fun setAccessLogEnabled(accessLogEnabled: Boolean)
Set whether access logs are enabled.
Link copied to clipboard
open fun setAccessLogPattern(accessLogPattern: String)
Set the access log pattern.
Link copied to clipboard
open fun setAccessLogPrefix(accessLogPrefix: String)
Set the access log prefix.
Link copied to clipboard
open fun setAccessLogRotate(accessLogRotate: Boolean)
Set whether access logs rotation is enabled.
Link copied to clipboard
open fun setAccessLogSuffix(accessLogSuffix: String)
Set the access log suffix.
Link copied to clipboard
open fun setBufferSize(bufferSize: Integer)
Set the buffer size.
Link copied to clipboard
Set UndertowBuilderCustomizers that should be applied to the Undertow Builder.
Link copied to clipboard
open fun setCookieSameSiteSuppliers(cookieSameSiteSuppliers: List<out CookieSameSiteSupplier>)
Sets CookieSameSiteSuppliers that should be used to obtain the SameSite attribute of any added cookie.
Link copied to clipboard
Set UndertowDeploymentInfoCustomizers that should be applied to the Undertow DeploymentInfo.
Link copied to clipboard
open fun setDocumentRoot(documentRoot: File)
Sets the document root directory which will be used by the web context to serve static files.
Link copied to clipboard
open fun setEagerFilterInit(eagerFilterInit: Boolean)
Set whether filters should be eagerly initialized.
Link copied to clipboard
open fun setErrorPages(errorPages: Set<out ErrorPage>)
Sets the error pages that will be used when handling exceptions.
Link copied to clipboard
open fun setInitializers(initializers: List<out ServletContextInitializer>)
Sets ServletContextInitializer that should be applied in addition to getWebServer parameters.
Link copied to clipboard
open fun setIoThreads(ioThreads: Integer)
Set the number of IO Threads.
Link copied to clipboard
open fun setPreservePathOnForward(preservePathOnForward: Boolean)
Set whether the request path should be preserved on forward.
Link copied to clipboard
open fun setRegisterDefaultServlet(registerDefaultServlet: Boolean)
Set if the DefaultServlet should be registered.
Link copied to clipboard
open fun setResourceLoader(resourceLoader: ResourceLoader)
Link copied to clipboard
open fun setUseDirectBuffers(directBuffers: Boolean)
Set whether direct buffers should be used.
Link copied to clipboard
open fun setUseForwardHeaders(useForwardHeaders: Boolean)
Set if x-forward-* headers should be processed.
Link copied to clipboard
open fun setWorkerThreads(workerThreads: Integer)
Set the number of Worker Threads.