接口 ConfigurableTomcatWebServerFactory
public interface ConfigurableTomcatWebServerFactory extends ConfigurableWebServerFactory
ConfigurableWebServerFactory
for Tomcat-specific features.- 从以下版本开始:
- 2.0.0
- 另请参阅:
TomcatServletWebServerFactory
,TomcatReactiveWebServerFactory
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 void
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
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.从接口继承的方法 org.springframework.boot.web.server.ConfigurableWebServerFactory
setAddress, setCompression, setErrorPages, setHttp2, setPort, setServerHeader, setSsl, setSslStoreProvider
从接口继承的方法 org.springframework.boot.web.server.ErrorPageRegistry
addErrorPages
方法详细资料
setBaseDirectory
void setBaseDirectory(File baseDirectory)
Set the Tomcat base directory. If not specified a temporary directory will be used.- 参数:
baseDirectory
- the tomcat base directory
setBackgroundProcessorDelay
void setBackgroundProcessorDelay(int delay)
Sets the background processor delay in seconds.- 参数:
delay
- the delay in seconds
addEngineValves
void addEngineValves(org.apache.catalina.Valve... engineValves)
AddValve
s that should be applied to the TomcatEngine
.- 参数:
engineValves
- the valves to add
addConnectorCustomizers
void addConnectorCustomizers(TomcatConnectorCustomizer... tomcatConnectorCustomizers)
AddTomcatConnectorCustomizer
s that should be added to the TomcatConnector
.- 参数:
tomcatConnectorCustomizers
- the customizers to add
addContextCustomizers
void addContextCustomizers(TomcatContextCustomizer... tomcatContextCustomizers)
AddTomcatContextCustomizer
s that should be added to the TomcatContext
.- 参数:
tomcatContextCustomizers
- the customizers to add
setUriEncoding
void setUriEncoding(Charset uriEncoding)
Set the character encoding to use for URL decoding. If not specified 'UTF-8' will be used.- 参数:
uriEncoding
- the uri encoding to set