public 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. |
int |
getPort()
The port that the web server 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 |
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 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 © 2017 Pivotal Software, Inc.. All rights reserved.