@ConfigurationProperties(prefix="server", ignoreUnknownFields=false) public class ServerProperties extends Object implements EmbeddedServletContainerCustomizer
properties
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 |
Constructor and Description |
---|
ServerProperties() |
Modifier and Type | Method and Description |
---|---|
void |
customize(ConfigurableEmbeddedServletContainer container)
Customize the specified
ConfigurableEmbeddedServletContainer . |
InetAddress |
getAddress() |
String |
getContextPath() |
String |
getPath(String path) |
String[] |
getPathsArray(Collection<String> paths) |
String[] |
getPathsArray(String[] paths) |
Integer |
getPort() |
String |
getServletMapping() |
String |
getServletPath() |
String |
getServletPrefix() |
Integer |
getSessionTimeout() |
ServerProperties.Tomcat |
getTomcat() |
void |
setAddress(InetAddress address) |
void |
setContextPath(String contextPath) |
void |
setLoader(String value) |
void |
setPort(Integer port) |
void |
setServletPath(String servletPath) |
void |
setSessionTimeout(Integer sessionTimeout) |
public ServerProperties.Tomcat getTomcat()
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 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 © 2014 Pivotal Software, Inc.. All rights reserved.