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)
ConfigurableWebServerFactory
setPort
in interface ConfigurableWebServerFactory
port
- the port to setpublic InetAddress getAddress()
public void setAddress(InetAddress address)
ConfigurableWebServerFactory
setAddress
in interface ConfigurableWebServerFactory
address
- 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)
ConfigurableWebServerFactory
setErrorPages
in interface ConfigurableWebServerFactory
errorPages
- the error pagespublic void addErrorPages(ErrorPage... errorPages)
ErrorPageRegistry
addErrorPages
in interface ErrorPageRegistry
errorPages
- the error pagespublic Ssl getSsl()
public void setSsl(Ssl ssl)
ConfigurableWebServerFactory
setSsl
in interface ConfigurableWebServerFactory
ssl
- the SSL configurationpublic SslStoreProvider getSslStoreProvider()
public void setSslStoreProvider(SslStoreProvider sslStoreProvider)
ConfigurableWebServerFactory
setSslStoreProvider
in interface ConfigurableWebServerFactory
sslStoreProvider
- the SSL store providerpublic Http2 getHttp2()
public void setHttp2(Http2 http2)
ConfigurableWebServerFactory
setHttp2
in interface ConfigurableWebServerFactory
http2
- the HTTP/2 configurationpublic Compression getCompression()
public void setCompression(Compression compression)
ConfigurableWebServerFactory
setCompression
in interface ConfigurableWebServerFactory
compression
- the compression configurationpublic String getServerHeader()
public void setServerHeader(String serverHeader)
ConfigurableWebServerFactory
setServerHeader
in interface ConfigurableWebServerFactory
serverHeader
- the server header valueCopyright © 2021 Pivotal Software, Inc.. All rights reserved.