@ConfigurationProperties(name="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(ConfigurableEmbeddedServletContainerFactory factory)
Customize the specified
ConfigurableEmbeddedServletContainerFactory . |
InetAddress |
getAddress() |
String |
getContextPath() |
Integer |
getPort() |
Integer |
getSessionTimeout() |
ServerProperties.Tomcat |
getTomcat() |
void |
setAddress(InetAddress address) |
void |
setContextPath(String contextPath) |
void |
setLoader(String value) |
void |
setPort(Integer port) |
void |
setSessionTimeout(Integer sessionTimeout) |
public ServerProperties.Tomcat getTomcat()
public String getContextPath()
public void setContextPath(String contextPath)
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(ConfigurableEmbeddedServletContainerFactory factory)
EmbeddedServletContainerCustomizer
ConfigurableEmbeddedServletContainerFactory
.customize
in interface EmbeddedServletContainerCustomizer
factory
- the factory to customizeCopyright © 2014. All rights reserved.