public abstract class AbstractConfigurableWebServerFactory extends Object implements ConfigurableWebServerFactory
ConfigurableWebServerFactory implementations.| Constructor and Description |
|---|
AbstractConfigurableWebServerFactory()
Create a new
AbstractConfigurableWebServerFactory instance. |
AbstractConfigurableWebServerFactory(int port)
Create a new
AbstractConfigurableWebServerFactory instance 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
ErrorPages that will be used when
handling exceptions. |
Http2 |
getHttp2() |
int |
getPort()
The port that the web server listens on.
|
String |
getServerHeader() |
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 |
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 valueCopyright © 2018 Pivotal Software, Inc.. All rights reserved.