Interface ConfigurableTomcatWebServerFactory
- All Superinterfaces:
ConfigurableWebServerFactory
,ErrorPageRegistry
,WebServerFactory
- All Known Implementing Classes:
TomcatReactiveWebServerFactory
,TomcatServletWebServerFactory
ConfigurableWebServerFactory
for Tomcat-specific features.- Since:
- 2.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addConnectorCustomizers
(TomcatConnectorCustomizer... tomcatConnectorCustomizers) AddTomcatConnectorCustomizer
s that should be added to the TomcatConnector
.void
addContextCustomizers
(TomcatContextCustomizer... tomcatContextCustomizers) AddTomcatContextCustomizer
s that should be added to the TomcatContext
.void
addEngineValves
(org.apache.catalina.Valve... engineValves) AddValve
s that should be applied to the TomcatEngine
.void
addProtocolHandlerCustomizers
(TomcatProtocolHandlerCustomizer<?>... tomcatProtocolHandlerCustomizers) AddTomcatProtocolHandlerCustomizer
s that should be added to the TomcatConnector
.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.Methods inherited from interface org.springframework.boot.web.server.ConfigurableWebServerFactory
setAddress, setCompression, setErrorPages, setHttp2, setPort, setServerHeader, setShutdown, setSsl, setSslBundles
Methods inherited from interface org.springframework.boot.web.server.ErrorPageRegistry
addErrorPages
-
Method Details
-
setBaseDirectory
Set the Tomcat base directory. If not specified a temporary directory will be used.- Parameters:
baseDirectory
- the tomcat base directory
-
setBackgroundProcessorDelay
void setBackgroundProcessorDelay(int delay) Sets the background processor delay in seconds.- Parameters:
delay
- the delay in seconds
-
addEngineValves
void addEngineValves(org.apache.catalina.Valve... engineValves) AddValve
s that should be applied to the TomcatEngine
.- Parameters:
engineValves
- the valves to add
-
addConnectorCustomizers
AddTomcatConnectorCustomizer
s that should be added to the TomcatConnector
.- Parameters:
tomcatConnectorCustomizers
- the customizers to add
-
addContextCustomizers
AddTomcatContextCustomizer
s that should be added to the TomcatContext
.- Parameters:
tomcatContextCustomizers
- the customizers to add
-
addProtocolHandlerCustomizers
void addProtocolHandlerCustomizers(TomcatProtocolHandlerCustomizer<?>... tomcatProtocolHandlerCustomizers) AddTomcatProtocolHandlerCustomizer
s that should be added to the TomcatConnector
.- Parameters:
tomcatProtocolHandlerCustomizers
- the customizers to add- Since:
- 2.2.0
-
setUriEncoding
Set the character encoding to use for URL decoding. If not specified 'UTF-8' will be used.- Parameters:
uriEncoding
- the uri encoding to set
-