ConfigurableJettyWebServerFactory

Functions

Link copied to clipboard
abstract fun addErrorPages(errorPages: Array<ErrorPage>)
Adds error pages that will be used when handling exceptions.
Link copied to clipboard
Add JettyServerCustomizers that will be applied to the Server before it is started.
Link copied to clipboard
abstract fun setAcceptors(acceptors: Int)
Set the number of acceptor threads to use.
Link copied to clipboard
abstract fun setAddress(address: InetAddress)
Sets the specific network address that the server should bind to.
Link copied to clipboard
abstract fun setCompression(compression: Compression)
Sets the compression configuration that will be applied to the server's default connector.
Link copied to clipboard
abstract fun setErrorPages(errorPages: Set<out ErrorPage>)
Sets the error pages that will be used when handling exceptions.
Link copied to clipboard
abstract fun setHttp2(http2: Http2)
Sets the HTTP/2 configuration that will be applied to the server.
Link copied to clipboard
abstract fun setMaxConnections(maxConnections: Int)
Sets the maximum number of concurrent connections.
Link copied to clipboard
abstract fun setPort(port: Int)
Sets the port that the web server should listen on.
Link copied to clipboard
abstract fun setSelectors(selectors: Int)
Set the number of selector threads to use.
Link copied to clipboard
abstract fun setServerHeader(serverHeader: String)
Sets the server header value.
Link copied to clipboard
open fun setShutdown(shutdown: Shutdown)
Sets the shutdown configuration that will be applied to the server.
Link copied to clipboard
abstract fun setSsl(ssl: Ssl)
Sets the SSL configuration that will be applied to the server's default connector.
Link copied to clipboard
abstract fun setSslBundles(sslBundles: SslBundles)
Sets the SSL bundles that can be used to configure SSL connections.
Link copied to clipboard
abstract fun setThreadPool(threadPool: ThreadPool)
Set the ThreadPool that should be used by the Server.
Link copied to clipboard
abstract fun setUseForwardHeaders(useForwardHeaders: Boolean)
Set if x-forward-* headers should be processed.