public interface ConfigurableTomcatWebServerFactory extends ConfigurableWebServerFactory
ConfigurableWebServerFactory for Tomcat-specific features.TomcatServletWebServerFactory,
TomcatReactiveWebServerFactory| Modifier and Type | Method and Description |
|---|---|
void |
addConnectorCustomizers(TomcatConnectorCustomizer... tomcatConnectorCustomizers)
Add
TomcatConnectorCustomizers that should be added to the Tomcat
Connector. |
void |
addContextCustomizers(TomcatContextCustomizer... tomcatContextCustomizers)
Add
TomcatContextCustomizers that should be added to the Tomcat
Context. |
void |
addEngineValves(Valve... engineValves)
|
void |
addProtocolHandlerCustomizers(TomcatProtocolHandlerCustomizer<?>... tomcatProtocolHandlerCustomizers)
Add
TomcatProtocolHandlerCustomizers that should be added to the Tomcat
Connector. |
void |
setBackgroundProcessorDelay(int delay)
Sets the background processor delay in seconds.
|
void |
setBaseDirectory(File baseDirectory)
Set the Tomcat base directory.
|
void |
setUriEncoding(Charset uriEncoding)
Set the character encoding to use for URL decoding.
|
setAddress, setCompression, setErrorPages, setHttp2, setPort, setServerHeader, setShutdown, setSsl, setSslStoreProvideraddErrorPagesvoid setBaseDirectory(File baseDirectory)
baseDirectory - the tomcat base directoryvoid setBackgroundProcessorDelay(int delay)
delay - the delay in secondsvoid addEngineValves(Valve... engineValves)
engineValves - the valves to addvoid addConnectorCustomizers(TomcatConnectorCustomizer... tomcatConnectorCustomizers)
TomcatConnectorCustomizers that should be added to the Tomcat
Connector.tomcatConnectorCustomizers - the customizers to addvoid addContextCustomizers(TomcatContextCustomizer... tomcatContextCustomizers)
TomcatContextCustomizers that should be added to the Tomcat
Context.tomcatContextCustomizers - the customizers to addvoid addProtocolHandlerCustomizers(TomcatProtocolHandlerCustomizer<?>... tomcatProtocolHandlerCustomizers)
TomcatProtocolHandlerCustomizers that should be added to the Tomcat
Connector.tomcatProtocolHandlerCustomizers - the customizers to addvoid setUriEncoding(Charset uriEncoding)
uriEncoding - the uri encoding to set