Class ServerProperties
- java.lang.Object
- org.springframework.boot.autoconfigure.web.ServerProperties
- All Implemented Interfaces:
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.
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServerProperties.Jetty
static class
ServerProperties.Session
static class
ServerProperties.Tomcat
static class
ServerProperties.Undertow
Constructor Summary
Constructors Constructor Description ServerProperties()
Method Summary
Constructor Detail
ServerProperties
public ServerProperties()
Method Detail
getOrder
public int getOrder()
- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment)
- Specified by:
setEnvironment
in interfaceorg.springframework.context.EnvironmentAware
customize
public void customize(org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer container)
- Specified by:
customize
in interfaceorg.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()
Deprecated.
setMaxHttpPostSize
@Deprecated public void setMaxHttpPostSize(int maxHttpPostSize)
Deprecated.
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()