Class ServerProperties
java.lang.Object
org.springframework.boot.autoconfigure.web.ServerProperties
@ConfigurationProperties(prefix="server",
ignoreUnknownFields=true)
public class ServerProperties
extends Object
@ConfigurationProperties
for a web server (e.g. port
and path settings).- Since:
- 1.0.0
- Author:
- Dave Syer, Stephane Nicoll, Andy Wilkinson, Ivan Sopov, Marcos Barbero, Eddú Meléndez, Quinten De Swaef, Venil Noronha, Aurélien Leboulanger, Brian Clozel, Olivier Lamy, Chentao Qu, Artsiom Yudovin, Andrew McGhie, Rafiullah Hamedy, Dirk Deyne, HaiTao Zhang, Victor Mandujano, Chris Bono, Parviz Rozikov
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Strategies for supporting forward headers.static class
Jetty properties.static class
Netty properties.static class
Reactive server properties.static class
Servlet server properties.static class
Tomcat properties.static class
Undertow properties. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetError()
getHttp2()
getJetty()
Deprecated, for removal: This API element is subject to removal in a future version.getNetty()
getPort()
getSsl()
void
setAddress
(InetAddress address) void
setForwardHeadersStrategy
(ServerProperties.ForwardHeadersStrategy forwardHeadersStrategy) void
setMaxHttpHeaderSize
(DataSize maxHttpHeaderSize) Deprecated, for removal: This API element is subject to removal in a future version.void
setMaxHttpRequestHeaderSize
(DataSize maxHttpRequestHeaderSize) void
void
setServerHeader
(String serverHeader) void
setShutdown
(Shutdown shutdown) void
-
Constructor Details
-
ServerProperties
public ServerProperties()
-
-
Method Details
-
getPort
-
setPort
-
getAddress
-
setAddress
-
getServerHeader
-
setServerHeader
-
getMaxHttpHeaderSize
@Deprecated(since="3.0.0", forRemoval=true) @DeprecatedConfigurationProperty public DataSize getMaxHttpHeaderSize()Deprecated, for removal: This API element is subject to removal in a future version. -
setMaxHttpHeaderSize
@Deprecated(since="3.0.0", forRemoval=true) public void setMaxHttpHeaderSize(DataSize maxHttpHeaderSize) Deprecated, for removal: This API element is subject to removal in a future version. -
getMaxHttpRequestHeaderSize
-
setMaxHttpRequestHeaderSize
-
getShutdown
-
setShutdown
-
getError
-
getSsl
-
setSsl
-
getCompression
-
getHttp2
-
getServlet
-
getReactive
-
getTomcat
-
getJetty
-
getNetty
-
getUndertow
-
getForwardHeadersStrategy
-
setForwardHeadersStrategy
public void setForwardHeadersStrategy(ServerProperties.ForwardHeadersStrategy forwardHeadersStrategy)
-