public interface ConfigurableWebServerFactory extends WebServerFactory, ErrorPageRegistry
WebServerFactory
.ErrorPageRegistry
Modifier and Type | Method and Description |
---|---|
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.
|
default 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.
|
addErrorPages
void setPort(int port)
port
- the port to setvoid setAddress(InetAddress address)
address
- the address to set (defaults to null
)void setErrorPages(Set<? extends ErrorPage> errorPages)
errorPages
- the error pagesvoid setSsl(Ssl ssl)
ssl
- the SSL configurationvoid setSslStoreProvider(SslStoreProvider sslStoreProvider)
sslStoreProvider
- the SSL store providervoid setHttp2(Http2 http2)
http2
- the HTTP/2 configurationvoid setCompression(Compression compression)
compression
- the compression configurationvoid setServerHeader(String serverHeader)
serverHeader
- the server header valuedefault void setShutdown(Shutdown shutdown)
shutdown
- the shutdown configuration