public class ServletWebServerFactoryCustomizer extends Object implements WebServerFactoryCustomizer<ConfigurableServletWebServerFactory>, Ordered
WebServerFactoryCustomizer
to apply ServerProperties
and
WebListenerRegistrars
to servlet web servers.HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
ServletWebServerFactoryCustomizer(ServerProperties serverProperties) |
ServletWebServerFactoryCustomizer(ServerProperties serverProperties,
List<WebListenerRegistrar> webListenerRegistrars) |
Modifier and Type | Method and Description |
---|---|
void |
customize(ConfigurableServletWebServerFactory factory)
Customize the specified
WebServerFactory . |
int |
getOrder() |
public ServletWebServerFactoryCustomizer(ServerProperties serverProperties)
public ServletWebServerFactoryCustomizer(ServerProperties serverProperties, List<WebListenerRegistrar> webListenerRegistrars)
public void customize(ConfigurableServletWebServerFactory factory)
WebServerFactoryCustomizer
WebServerFactory
.customize
in interface WebServerFactoryCustomizer<ConfigurableServletWebServerFactory>
factory
- the web server factory to customize