TomcatReactiveWebServerFactory

ReactiveWebServerFactory that can be used to create a TomcatWebServer.

Author

Brian Clozel

HaiTao Zhang

Moritz Halbritter

Scott Frederick

Since

2.0.0

Constructors

Link copied to clipboard
constructor()
Create a new TomcatReactiveWebServerFactory instance.
constructor(port: Int)
Create a new TomcatReactiveWebServerFactory 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
val DEFAULT_PROTOCOL: String = "org.apache.coyote.http11.Http11NioProtocol"
The class name of default protocol used.
Link copied to clipboard
val engineValves: List<Valve>
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
open var shutdown: Shutdown
Link copied to clipboard
open var ssl: Ssl
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun addAdditionalTomcatConnectors(connectors: Array<Connector>)
Add Connectors in addition to the default connector, e.g.
Link copied to clipboard
open fun addConnectorCustomizers(tomcatConnectorCustomizers: Array<TomcatConnectorCustomizer>)
Add TomcatConnectorCustomizers that should be added to the Tomcat Connector.
Link copied to clipboard
open fun addContextCustomizers(tomcatContextCustomizers: Array<TomcatContextCustomizer>)
Add TomcatContextCustomizers that should be added to the Tomcat Context.
Link copied to clipboard
open fun addContextLifecycleListeners(contextLifecycleListeners: Array<LifecycleListener>)
Add LifecycleListeners that should be added to the Tomcat Context.
Link copied to clipboard
open fun addEngineValves(engineValves: Array<Valve>)
Add Valves that should be applied to the Tomcat Engine.
Link copied to clipboard
open fun addErrorPages(errorPages: Array<ErrorPage>)
Adds error pages that will be used when handling exceptions.
Link copied to clipboard
open fun addProtocolHandlerCustomizers(tomcatProtocolHandlerCustomizers: Array<TomcatProtocolHandlerCustomizer<out Any>>)
Add TomcatProtocolHandlerCustomizers that should be added to the Tomcat Connector.
Link copied to clipboard
open fun getContextLifecycleListeners(): Collection<LifecycleListener>
Returns a mutable collection of the LifecycleListeners that will be applied to the Tomcat Context.
Link copied to clipboard
Returns a mutable collection of the TomcatConnectorCustomizers that will be applied to the Tomcat Connector.
Link copied to clipboard
Returns a mutable collection of the TomcatContextCustomizers that will be applied to the Tomcat Context.
Link copied to clipboard
Returns a mutable collection of the TomcatProtocolHandlerCustomizers that will be applied to the Tomcat Connector.
Link copied to clipboard
open fun getWebServer(httpHandler: HttpHandler): WebServer
Gets a new fully configured but paused WebServer instance.
Link copied to clipboard
Sets the background processor delay in seconds.
Link copied to clipboard
open fun setBaseDirectory(baseDirectory: File)
Set the Tomcat base directory.
Link copied to clipboard
open fun setContextLifecycleListeners(contextLifecycleListeners: Collection<out LifecycleListener>)
Set LifecycleListeners that should be applied to the Tomcat Context.
Link copied to clipboard
open fun setDisableMBeanRegistry(disableMBeanRegistry: Boolean)
Set whether the factory should disable Tomcat's MBean registry prior to creating the server.
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 setProtocol(protocol: String)
The Tomcat protocol to use when create the Connector.
Link copied to clipboard
open fun setTomcatConnectorCustomizers(tomcatConnectorCustomizers: Collection<out TomcatConnectorCustomizer>)
Set TomcatConnectorCustomizers that should be applied to the Tomcat Connector.
Link copied to clipboard
open fun setTomcatContextCustomizers(tomcatContextCustomizers: Collection<out TomcatContextCustomizer>)
Set TomcatContextCustomizers that should be applied to the Tomcat Context.
Link copied to clipboard
open fun setTomcatProtocolHandlerCustomizers(tomcatProtocolHandlerCustomizers: Collection<out TomcatProtocolHandlerCustomizer<out Any>>)
Set TomcatProtocolHandlerCustomizers that should be applied to the Tomcat Connector.
Link copied to clipboard
open fun setUseApr(useApr: Boolean)
Whether to use APR.