JettyReactiveWebServerFactory

ReactiveWebServerFactory that can be used to create JettyWebServers.

Author

Brian Clozel

Moritz Halbritter

Since

2.0.0

Constructors

Link copied to clipboard
constructor()
Create a new JettyServletWebServerFactory instance.
constructor(port: Int)
Create a new JettyServletWebServerFactory that listens for requests using the specified port.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var http2: Http2
Link copied to clipboard
open var port: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var shutdown: Shutdown
Link copied to clipboard
open var ssl: Ssl
Link copied to clipboard
Link copied to clipboard
open var threadPool: ThreadPool

Functions

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 JettyServerCustomizers that will be applied to the Server before it is started.
Link copied to clipboard
Returns a mutable collection of Jetty JettyServerCustomizers that will be applied to the Server before it is created.
Link copied to clipboard
open fun getWebServer(httpHandler: HttpHandler): WebServer
Gets a new fully configured but paused WebServer instance.
Link copied to clipboard
open fun setAcceptors(acceptors: Int)
Set the number of acceptor threads to use.
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 setMaxConnections(maxConnections: Int)
Sets the maximum number of concurrent connections.
Link copied to clipboard
open fun setSelectors(selectors: Int)
Set the number of selector threads to use.
Link copied to clipboard
Sets JettyServerCustomizers that will be applied to the Server before it is started.
Link copied to clipboard
open fun setUseForwardHeaders(useForwardHeaders: Boolean)
Set if x-forward-* headers should be processed.