@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.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)
protected final boolean getOrDeduceUseForwardHeaders()
@Deprecated @DeprecatedConfigurationProperty(replacement="server.session.timeout") public Integer getSessionTimeout()
session.timeout
.@Deprecated public void setSessionTimeout(Integer sessionTimeout)
session.timeout
.sessionTimeout
- the session timeoutpublic 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.Undertow getUndertow()
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.