Class ServletWebServerFactoryCustomizer
java.lang.Object
org.springframework.boot.autoconfigure.web.servlet.ServletWebServerFactoryCustomizer
- All Implemented Interfaces:
WebServerFactoryCustomizer<ConfigurableServletWebServerFactory>,Ordered
public class ServletWebServerFactoryCustomizer
extends Object
implements WebServerFactoryCustomizer<ConfigurableServletWebServerFactory>, Ordered
WebServerFactoryCustomizer to apply ServerProperties and
WebListenerRegistrars to servlet web servers.- Since:
- 2.0.0
- Author:
- Brian Clozel, Stephane Nicoll, Olivier Lamy, Yunkun Huang, Scott Frederick, Lasse Wulff
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionServletWebServerFactoryCustomizer(ServerProperties serverProperties) ServletWebServerFactoryCustomizer(ServerProperties serverProperties, List<WebListenerRegistrar> webListenerRegistrars) -
Method Summary
-
Constructor Details
-
ServletWebServerFactoryCustomizer
-
ServletWebServerFactoryCustomizer
public ServletWebServerFactoryCustomizer(ServerProperties serverProperties, List<WebListenerRegistrar> webListenerRegistrars)
-
-
Method Details
-
getOrder
public int getOrder() -
customize
Description copied from interface:WebServerFactoryCustomizerCustomize the specifiedWebServerFactory.- Specified by:
customizein interfaceWebServerFactoryCustomizer<ConfigurableServletWebServerFactory>- Parameters:
factory- the web server factory to customize
-