@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.Tomcat |
static class |
ServerProperties.Undertow |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
ServerProperties() |
Modifier and Type | Method and Description |
---|---|
void |
customize(ConfigurableEmbeddedServletContainer container)
Customize the specified
ConfigurableEmbeddedServletContainer . |
InetAddress |
getAddress() |
Map<String,String> |
getContextParameters() |
String |
getContextPath() |
int |
getOrder() |
String |
getPath(String path) |
String[] |
getPathsArray(Collection<String> paths) |
String[] |
getPathsArray(String[] paths) |
Integer |
getPort() |
String |
getServletMapping() |
String |
getServletPath() |
String |
getServletPrefix() |
Integer |
getSessionTimeout() |
Ssl |
getSsl() |
ServerProperties.Tomcat |
getTomcat() |
ServerProperties.Undertow |
getUndertow() |
void |
setAddress(InetAddress address) |
void |
setContextPath(String contextPath) |
void |
setLoader(String value) |
void |
setPort(Integer port) |
void |
setServletPath(String servletPath) |
void |
setSessionTimeout(Integer sessionTimeout) |
void |
setSsl(Ssl ssl) |
public ServerProperties.Tomcat getTomcat()
public ServerProperties.Undertow getUndertow()
public String getContextPath()
public void setContextPath(String contextPath)
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)
public Integer getSessionTimeout()
public void setSessionTimeout(Integer sessionTimeout)
public Ssl getSsl()
public void setSsl(Ssl ssl)
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.