类 ServerProperties
- java.lang.Object
- org.springframework.boot.autoconfigure.web.ServerProperties
- 所有已实现的接口:
org.springframework.beans.factory.Aware
,org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer
,org.springframework.context.EnvironmentAware
,org.springframework.core.Ordered
@ConfigurationProperties(prefix="server", ignoreUnknownFields=true) public class ServerProperties extends Object implements org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer, org.springframework.context.EnvironmentAware, org.springframework.core.Ordered
ConfigurationProperties
for a web server (e.g. port and path settings). Will be used to customize anEmbeddedServletContainerFactory
when anEmbeddedServletContainerCustomizerBeanPostProcessor
is active.
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
ServerProperties.Jetty
static class
ServerProperties.Session
static class
ServerProperties.Tomcat
static class
ServerProperties.Undertow
构造器概要
构造器 构造器 说明 ServerProperties()
方法概要
构造器详细资料
ServerProperties
public ServerProperties()
方法详细资料
getOrder
public int getOrder()
- 指定者:
getOrder
在接口中org.springframework.core.Ordered
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment)
- 指定者:
setEnvironment
在接口中org.springframework.context.EnvironmentAware
customize
public void customize(org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer container)
- 指定者:
customize
在接口中org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer
getServletMapping
public String getServletMapping()
getServletPrefix
public String getServletPrefix()
getPathsArray
public String[] getPathsArray(Collection<String> paths)
getPathsArray
public String[] getPathsArray(String[] paths)
getAddress
public InetAddress getAddress()
setAddress
public void setAddress(InetAddress address)
getContextPath
public String getContextPath()
setContextPath
public void setContextPath(String contextPath)
getDisplayName
public String getDisplayName()
setDisplayName
public void setDisplayName(String displayName)
getServletPath
public String getServletPath()
setServletPath
public void setServletPath(String servletPath)
getContextParameters
public Map<String,String> getContextParameters()
isUseForwardHeaders
public Boolean isUseForwardHeaders()
setUseForwardHeaders
public void setUseForwardHeaders(Boolean useForwardHeaders)
getServerHeader
public String getServerHeader()
setServerHeader
public void setServerHeader(String serverHeader)
getMaxHttpHeaderSize
public int getMaxHttpHeaderSize()
setMaxHttpHeaderSize
public void setMaxHttpHeaderSize(int maxHttpHeaderSize)
getMaxHttpPostSize
@Deprecated @DeprecatedConfigurationProperty(reason="Use dedicated property for each container.") public int getMaxHttpPostSize()
已过时。
setMaxHttpPostSize
@Deprecated public void setMaxHttpPostSize(int maxHttpPostSize)
已过时。
getOrDeduceUseForwardHeaders
protected final boolean getOrDeduceUseForwardHeaders()
getConnectionTimeout
public Integer getConnectionTimeout()
setConnectionTimeout
public void setConnectionTimeout(Integer connectionTimeout)
getError
public ErrorProperties getError()
getSession
public ServerProperties.Session getSession()
setSession
public void setSession(ServerProperties.Session session)
getSsl
public org.springframework.boot.context.embedded.Ssl getSsl()
setSsl
public void setSsl(org.springframework.boot.context.embedded.Ssl ssl)
getCompression
public org.springframework.boot.context.embedded.Compression getCompression()
getJspServlet
public org.springframework.boot.context.embedded.JspServlet getJspServlet()
setJspServlet
public void setJspServlet(org.springframework.boot.context.embedded.JspServlet jspServlet)
getTomcat
public ServerProperties.Tomcat getTomcat()
getJetty
public ServerProperties.Jetty getJetty()
getUndertow
public ServerProperties.Undertow getUndertow()