@ConfigurationProperties(prefix="server", ignoreUnknownFields=false) public class ServerProperties extends Object implements EmbeddedServletContainerCustomizer, 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 ServerProperties.Tomcat getTomcat()
public ServerProperties.Undertow getUndertow()
public Compression getCompression()
public String getContextPath()
public void setContextPath(String contextPath)
public String getDisplayName()
public void setDisplayName(String displayName)
public String getServletPath()
public String getServletMapping()
public String getServletPrefix()
public void setServletPath(String servletPath)
public Integer getPort()
public void setPort(Integer port)
public InetAddress getAddress()
public void setAddress(InetAddress address)
@Deprecated @DeprecatedConfigurationProperty(replacement="server.session.timeout") public Integer getSessionTimeout()
session.timeout
.@Deprecated public void setSessionTimeout(Integer sessionTimeout)
session.timeout
.sessionTimeout
- the session timeoutpublic ServerProperties.Session getSession()
public Ssl getSsl()
public void setSsl(Ssl ssl)
public JspServlet getJspServlet()
public void setJspServlet(JspServlet jspServlet)
public void setLoader(String value)
public void customize(ConfigurableEmbeddedServletContainer container)
EmbeddedServletContainerCustomizer
ConfigurableEmbeddedServletContainer
.customize
in interface EmbeddedServletContainerCustomizer
container
- the container to customizepublic String[] getPathsArray(Collection<String> paths)
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.