接口 ConfigurableTomcatWebServerFactory
ConfigurableWebServerFactory for Tomcat-specific features.- 从以下版本开始:
- 2.0.0
- 作者:
- Brian Clozel
- 另请参阅:
-
方法概要
修饰符和类型方法说明voidaddConnectorCustomizers(TomcatConnectorCustomizer... tomcatConnectorCustomizers) AddTomcatConnectorCustomizers that should be added to the TomcatConnector.voidaddContextCustomizers(TomcatContextCustomizer... tomcatContextCustomizers) AddTomcatContextCustomizers that should be added to the TomcatContext.voidaddEngineValves(Valve... engineValves) voidaddProtocolHandlerCustomizers(TomcatProtocolHandlerCustomizer<?>... tomcatProtocolHandlerCustomizers) AddTomcatProtocolHandlerCustomizers that should be added to the TomcatConnector.voidsetBackgroundProcessorDelay(int delay) Sets the background processor delay in seconds.voidsetBaseDirectory(File baseDirectory) Set the Tomcat base directory.voidsetUriEncoding(Charset uriEncoding) Set the character encoding to use for URL decoding.从接口继承的方法 org.springframework.boot.web.server.ConfigurableWebServerFactory
setAddress, setCompression, setErrorPages, setHttp2, setPort, setServerHeader, setShutdown, setSsl, setSslBundles从接口继承的方法 org.springframework.boot.web.server.ErrorPageRegistry
addErrorPages
-
方法详细资料
-
setBaseDirectory
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
- 参数:
engineValves- the valves to add
-
addConnectorCustomizers
AddTomcatConnectorCustomizers that should be added to the TomcatConnector.- 参数:
tomcatConnectorCustomizers- the customizers to add
-
addContextCustomizers
AddTomcatContextCustomizers that should be added to the TomcatContext.- 参数:
tomcatContextCustomizers- the customizers to add
-
addProtocolHandlerCustomizers
void addProtocolHandlerCustomizers(TomcatProtocolHandlerCustomizer<?>... tomcatProtocolHandlerCustomizers) AddTomcatProtocolHandlerCustomizers that should be added to the TomcatConnector.- 参数:
tomcatProtocolHandlerCustomizers- the customizers to add- 从以下版本开始:
- 2.2.0
-
setUriEncoding
Set the character encoding to use for URL decoding. If not specified 'UTF-8' will be used.- 参数:
uriEncoding- the uri encoding to set
-