Class ServerProperties
- java.lang.Object
- org.springframework.boot.autoconfigure.web.ServerProperties
@ConfigurationProperties(prefix="server", ignoreUnknownFields=true) public class ServerProperties extends ObjectConfigurationPropertiesfor a web server (e.g. port and path settings).
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServerProperties.JettyJetty properties.static classServerProperties.ServletServlet properties.static classServerProperties.TomcatTomcat properties.static classServerProperties.UndertowUndertow properties.
Constructor Summary
Constructors Constructor Description ServerProperties()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InetAddressgetAddress()org.springframework.boot.web.server.CompressiongetCompression()DurationgetConnectionTimeout()ErrorPropertiesgetError()org.springframework.boot.web.server.Http2getHttp2()ServerProperties.JettygetJetty()org.springframework.util.unit.DataSizegetMaxHttpHeaderSize()IntegergetPort()StringgetServerHeader()ServerProperties.ServletgetServlet()org.springframework.boot.web.server.SslgetSsl()ServerProperties.TomcatgetTomcat()ServerProperties.UndertowgetUndertow()BooleanisUseForwardHeaders()voidsetAddress(InetAddress address)voidsetConnectionTimeout(Duration connectionTimeout)voidsetMaxHttpHeaderSize(org.springframework.util.unit.DataSize maxHttpHeaderSize)voidsetPort(Integer port)voidsetServerHeader(String serverHeader)voidsetSsl(org.springframework.boot.web.server.Ssl ssl)voidsetUseForwardHeaders(Boolean useForwardHeaders)
Constructor Detail
ServerProperties
public ServerProperties()
Method Detail
getAddress
public InetAddress getAddress()
setAddress
public void setAddress(InetAddress address)
isUseForwardHeaders
public Boolean isUseForwardHeaders()
setUseForwardHeaders
public void setUseForwardHeaders(Boolean useForwardHeaders)
getServerHeader
public String getServerHeader()
setServerHeader
public void setServerHeader(String serverHeader)
getMaxHttpHeaderSize
public org.springframework.util.unit.DataSize getMaxHttpHeaderSize()
setMaxHttpHeaderSize
public void setMaxHttpHeaderSize(org.springframework.util.unit.DataSize maxHttpHeaderSize)
getConnectionTimeout
public Duration getConnectionTimeout()
setConnectionTimeout
public void setConnectionTimeout(Duration connectionTimeout)
getError
public ErrorProperties getError()
getSsl
public org.springframework.boot.web.server.Ssl getSsl()
setSsl
public void setSsl(org.springframework.boot.web.server.Ssl ssl)
getCompression
public org.springframework.boot.web.server.Compression getCompression()
getHttp2
public org.springframework.boot.web.server.Http2 getHttp2()
getServlet
public ServerProperties.Servlet getServlet()
getTomcat
public ServerProperties.Tomcat getTomcat()
getJetty
public ServerProperties.Jetty getJetty()
getUndertow
public ServerProperties.Undertow getUndertow()