@ConfigurationProperties(prefix="server", ignoreUnknownFields=true) public class ServerProperties extends Object
ConfigurationProperties
for a web server (e.g. port and path settings).Modifier and Type | Class and Description |
---|---|
static class |
ServerProperties.Jetty
Jetty properties.
|
static class |
ServerProperties.Netty
Netty properties.
|
static class |
ServerProperties.Servlet
Servlet properties.
|
static class |
ServerProperties.Tomcat
Tomcat properties.
|
static class |
ServerProperties.Undertow
Undertow properties.
|
Constructor and Description |
---|
ServerProperties() |
Modifier and Type | Method and Description |
---|---|
InetAddress |
getAddress() |
Compression |
getCompression() |
Duration |
getConnectionTimeout()
Deprecated.
|
ErrorProperties |
getError() |
Http2 |
getHttp2() |
ServerProperties.Jetty |
getJetty() |
org.springframework.util.unit.DataSize |
getMaxHttpHeaderSize() |
ServerProperties.Netty |
getNetty() |
Integer |
getPort() |
String |
getServerHeader() |
ServerProperties.Servlet |
getServlet() |
Ssl |
getSsl() |
ServerProperties.Tomcat |
getTomcat() |
ServerProperties.Undertow |
getUndertow() |
Boolean |
isUseForwardHeaders() |
void |
setAddress(InetAddress address) |
void |
setConnectionTimeout(Duration connectionTimeout)
Deprecated.
|
void |
setMaxHttpHeaderSize(org.springframework.util.unit.DataSize maxHttpHeaderSize) |
void |
setPort(Integer port) |
void |
setServerHeader(String serverHeader) |
void |
setSsl(Ssl ssl) |
void |
setUseForwardHeaders(Boolean useForwardHeaders) |
public Integer getPort()
public void setPort(Integer port)
public InetAddress getAddress()
public void setAddress(InetAddress address)
public Boolean isUseForwardHeaders()
public void setUseForwardHeaders(Boolean useForwardHeaders)
public String getServerHeader()
public void setServerHeader(String serverHeader)
public org.springframework.util.unit.DataSize getMaxHttpHeaderSize()
public void setMaxHttpHeaderSize(org.springframework.util.unit.DataSize maxHttpHeaderSize)
@Deprecated @DeprecatedConfigurationProperty(reason="Each server behaves differently. Use server specific properties instead.") public Duration getConnectionTimeout()
@Deprecated public void setConnectionTimeout(Duration connectionTimeout)
public ErrorProperties getError()
public Ssl getSsl()
public void setSsl(Ssl ssl)
public Compression getCompression()
public Http2 getHttp2()
public ServerProperties.Servlet getServlet()
public ServerProperties.Tomcat getTomcat()
public ServerProperties.Jetty getJetty()
public ServerProperties.Netty getNetty()
public ServerProperties.Undertow getUndertow()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.