Interface ConfigurableWebServerFactory
- All Superinterfaces:
- ErrorPageRegistry,- WebServerFactory
- All Known Subinterfaces:
- ConfigurableJettyWebServerFactory,- ConfigurableReactiveWebServerFactory,- ConfigurableServletWebServerFactory,- ConfigurableTomcatWebServerFactory,- ConfigurableUndertowWebServerFactory
- All Known Implementing Classes:
- AbstractConfigurableWebServerFactory,- AbstractReactiveWebServerFactory,- AbstractServletWebServerFactory,- JettyReactiveWebServerFactory,- JettyServletWebServerFactory,- NettyReactiveWebServerFactory,- TomcatReactiveWebServerFactory,- TomcatServletWebServerFactory,- UndertowReactiveWebServerFactory,- UndertowServletWebServerFactory
A configurable 
WebServerFactory.- Since:
- 2.0.0
- Author:
- Phillip Webb, Brian Clozel, Scott Frederick
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionvoidsetAddress(InetAddress address) Sets the specific network address that the server should bind to.voidsetCompression(Compression compression) Sets the compression configuration that will be applied to the server's default connector.voidsetErrorPages(Set<? extends ErrorPage> errorPages) Sets the error pages that will be used when handling exceptions.voidSets the HTTP/2 configuration that will be applied to the server.voidsetPort(int port) Sets the port that the web server should listen on.voidsetServerHeader(String serverHeader) Sets the server header value.default voidsetShutdown(Shutdown shutdown) Sets the shutdown configuration that will be applied to the server.voidSets the SSL configuration that will be applied to the server's default connector.voidsetSslBundles(SslBundles sslBundles) Sets the SSL bundles that can be used to configure SSL connections.Methods inherited from interface org.springframework.boot.web.server.ErrorPageRegistryaddErrorPages
- 
Method Details- 
setPortvoid setPort(int port) Sets the port that the web server should listen on. If not specified port '8080' will be used. Use port -1 to disable auto-start (i.e. start the web application context but not have it listen to any port).- Parameters:
- port- the port to set
 
- 
setAddressSets the specific network address that the server should bind to.- Parameters:
- address- the address to set (defaults to- null)
 
- 
setErrorPagesSets the error pages that will be used when handling exceptions.- Parameters:
- errorPages- the error pages
 
- 
setSslSets the SSL configuration that will be applied to the server's default connector.- Parameters:
- ssl- the SSL configuration
 
- 
setSslBundlesSets the SSL bundles that can be used to configure SSL connections.- Parameters:
- sslBundles- the SSL bundles
- Since:
- 3.1.0
 
- 
setHttp2Sets the HTTP/2 configuration that will be applied to the server.- Parameters:
- http2- the HTTP/2 configuration
 
- 
setCompressionSets the compression configuration that will be applied to the server's default connector.- Parameters:
- compression- the compression configuration
 
- 
setServerHeaderSets the server header value.- Parameters:
- serverHeader- the server header value
 
- 
setShutdownSets the shutdown configuration that will be applied to the server.- Parameters:
- shutdown- the shutdown configuration
- Since:
- 2.3.0
 
 
-