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