@ConfigurationProperties(prefix="server", ignoreUnknownFields=true) public class ServerProperties extends Object implements EmbeddedServletContainerCustomizer, EnvironmentAware, 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 |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
ServerProperties() |
public void setEnvironment(Environment environment)
setEnvironment
in interface 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 © 2017 Pivotal Software, Inc.. All rights reserved.