public abstract class AbstractConfigurableWebServerFactory extends Object implements ConfigurableWebServerFactory
ConfigurableWebServerFactory implementations.| Constructor and Description | 
|---|
| AbstractConfigurableWebServerFactory()Create a new  AbstractConfigurableWebServerFactoryinstance. | 
| AbstractConfigurableWebServerFactory(int port)Create a new  AbstractConfigurableWebServerFactoryinstance with the
 specified port. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addErrorPages(ErrorPage... errorPages)Adds error pages that will be used when handling exceptions. | 
| protected File | createTempDir(String prefix)Return the absolute temp dir for given web server. | 
| InetAddress | getAddress()Return the address that the web server binds to. | 
| Compression | getCompression() | 
| Set<ErrorPage> | getErrorPages()Returns a mutable set of  ErrorPagesthat will be used when
 handling exceptions. | 
| Http2 | getHttp2() | 
| SslStoreProvider | getOrCreateSslStoreProvider()Return the provided  SslStoreProvideror create one usingSslproperties. | 
| int | getPort()The port that the web server listens on. | 
| String | getServerHeader() | 
| Shutdown | getShutdown()Returns the shutdown configuration that will be applied to the server. | 
| Ssl | getSsl() | 
| SslStoreProvider | getSslStoreProvider() | 
| void | setAddress(InetAddress address)Sets the specific network address that the server should bind to. | 
| void | setCompression(Compression compression)Sets the compression configuration that will be applied to the server's default
 connector. | 
| void | setErrorPages(Set<? extends ErrorPage> errorPages)Sets the error pages that will be used when handling exceptions. | 
| void | setHttp2(Http2 http2)Sets the HTTP/2 configuration that will be applied to the server. | 
| void | setPort(int port)Sets the port that the web server should listen on. | 
| void | setServerHeader(String serverHeader)Sets the server header value. | 
| void | setShutdown(Shutdown shutdown)Sets the shutdown configuration that will be applied to the server. | 
| void | setSsl(Ssl ssl)Sets the SSL configuration that will be applied to the server's default connector. | 
| void | setSslStoreProvider(SslStoreProvider sslStoreProvider)Sets a provider that will be used to obtain SSL stores. | 
public AbstractConfigurableWebServerFactory()
AbstractConfigurableWebServerFactory instance.public AbstractConfigurableWebServerFactory(int port)
AbstractConfigurableWebServerFactory instance with the
 specified port.port - the port number for the web serverpublic int getPort()
public void setPort(int port)
ConfigurableWebServerFactorysetPort in interface ConfigurableWebServerFactoryport - the port to setpublic InetAddress getAddress()
public void setAddress(InetAddress address)
ConfigurableWebServerFactorysetAddress in interface ConfigurableWebServerFactoryaddress - the address to set (defaults to null)public Set<ErrorPage> getErrorPages()
ErrorPages that will be used when
 handling exceptions.public void setErrorPages(Set<? extends ErrorPage> errorPages)
ConfigurableWebServerFactorysetErrorPages in interface ConfigurableWebServerFactoryerrorPages - the error pagespublic void addErrorPages(ErrorPage... errorPages)
ErrorPageRegistryaddErrorPages in interface ErrorPageRegistryerrorPages - the error pagespublic Ssl getSsl()
public void setSsl(Ssl ssl)
ConfigurableWebServerFactorysetSsl in interface ConfigurableWebServerFactoryssl - the SSL configurationpublic SslStoreProvider getSslStoreProvider()
public void setSslStoreProvider(SslStoreProvider sslStoreProvider)
ConfigurableWebServerFactorysetSslStoreProvider in interface ConfigurableWebServerFactorysslStoreProvider - the SSL store providerpublic Http2 getHttp2()
public void setHttp2(Http2 http2)
ConfigurableWebServerFactorysetHttp2 in interface ConfigurableWebServerFactoryhttp2 - the HTTP/2 configurationpublic Compression getCompression()
public void setCompression(Compression compression)
ConfigurableWebServerFactorysetCompression in interface ConfigurableWebServerFactorycompression - the compression configurationpublic String getServerHeader()
public void setServerHeader(String serverHeader)
ConfigurableWebServerFactorysetServerHeader in interface ConfigurableWebServerFactoryserverHeader - the server header valuepublic void setShutdown(Shutdown shutdown)
ConfigurableWebServerFactorysetShutdown in interface ConfigurableWebServerFactoryshutdown - the shutdown configurationpublic Shutdown getShutdown()
public final SslStoreProvider getOrCreateSslStoreProvider()
SslStoreProvider or create one using Ssl
 properties.SslStoreProvider