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, Florian Storz, Michael Weidmann, Lasse Wulff
-
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()
getNetty()
getPort()
getSsl()
void
setAddress
(InetAddress address) void
setForwardHeadersStrategy
(ServerProperties.ForwardHeadersStrategy forwardHeadersStrategy) void
setMaxHttpRequestHeaderSize
(DataSize maxHttpRequestHeaderSize) void
setMimeMappings
(Map<String, String> customMappings) void
void
setServerHeader
(String serverHeader) void
setShutdown
(Shutdown shutdown) void
-
Constructor Details
-
ServerProperties
public ServerProperties()
-
-
Method Details
-
getPort
-
setPort
-
getAddress
-
setAddress
-
getServerHeader
-
setServerHeader
-
getMaxHttpRequestHeaderSize
-
setMaxHttpRequestHeaderSize
-
getShutdown
-
setShutdown
-
getError
-
getSsl
-
setSsl
-
getCompression
-
getMimeMappings
-
setMimeMappings
-
getHttp2
-
getServlet
-
getReactive
-
getTomcat
-
getJetty
-
getNetty
-
getUndertow
-
getForwardHeadersStrategy
-
setForwardHeadersStrategy
public void setForwardHeadersStrategy(ServerProperties.ForwardHeadersStrategy forwardHeadersStrategy)
-