类 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).
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classServerProperties.JettyJetty properties.static classServerProperties.ServletServlet properties.static classServerProperties.TomcatTomcat properties.static classServerProperties.UndertowUndertow properties.
构造器概要
构造器 构造器 说明 ServerProperties()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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)
构造器详细资料
ServerProperties
public ServerProperties()
方法详细资料
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()