@ConfigurationProperties(prefix="server", ignoreUnknownFields=true) public class ServerProperties extends Object implements 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 an EmbeddedServletContainerFactory
when an
EmbeddedServletContainerCustomizerBeanPostProcessor
is active.Modifier and Type | Class and Description |
---|---|
static class |
ServerProperties.Jetty |
static class |
ServerProperties.Session |
static class |
ServerProperties.Tomcat |
static class |
ServerProperties.Undertow |
Constructor and Description |
---|
ServerProperties() |
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
public void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment
in interface org.springframework.context.EnvironmentAware
public void customize(ConfigurableEmbeddedServletContainer container)
EmbeddedServletContainerCustomizer
ConfigurableEmbeddedServletContainer
.customize
in interface EmbeddedServletContainerCustomizer
container
- the container to customizepublic String getServletMapping()
public String getServletPrefix()
public String[] getPathsArray(Collection<String> paths)
public void setLoader(String value)
public Integer getPort()
public void setPort(Integer port)
public InetAddress getAddress()
public void setAddress(InetAddress address)
public String getContextPath()
public void setContextPath(String contextPath)
public String getDisplayName()
public void setDisplayName(String displayName)
public String getServletPath()
public void setServletPath(String servletPath)
public Boolean isUseForwardHeaders()
public void setUseForwardHeaders(Boolean useForwardHeaders)
public String getServerHeader()
public void setServerHeader(String serverHeader)
public int getMaxHttpHeaderSize()
public void setMaxHttpHeaderSize(int maxHttpHeaderSize)
@Deprecated @DeprecatedConfigurationProperty(reason="Use dedicated property for each container.") public int getMaxHttpPostSize()
@Deprecated public void setMaxHttpPostSize(int maxHttpPostSize)
protected final boolean getOrDeduceUseForwardHeaders()
public Integer getConnectionTimeout()
public void setConnectionTimeout(Integer connectionTimeout)
public ErrorProperties getError()
public ServerProperties.Session getSession()
public void setSession(ServerProperties.Session session)
public Ssl getSsl()
public void setSsl(Ssl ssl)
public Compression getCompression()
public JspServlet getJspServlet()
public void setJspServlet(JspServlet jspServlet)
public ServerProperties.Tomcat getTomcat()
public ServerProperties.Jetty getJetty()
public ServerProperties.Undertow getUndertow()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.