@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.ForwardHeadersStrategy
Strategies for supporting forward headers.
|
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() |
public Integer getPort()
public void setPort(Integer port)
public InetAddress getAddress()
public void setAddress(InetAddress address)
@DeprecatedConfigurationProperty(reason="replaced to support additional strategies", replacement="server.forward-headers-strategy") 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()
public ServerProperties.ForwardHeadersStrategy getForwardHeadersStrategy()
public void setForwardHeadersStrategy(ServerProperties.ForwardHeadersStrategy forwardHeadersStrategy)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.