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
ConstructorDescriptionServletWebServerFactoryCustomizer
(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:WebServerFactoryCustomizer
Customize the specifiedWebServerFactory
.- Specified by:
customize
in interfaceWebServerFactoryCustomizer<ConfigurableServletWebServerFactory>
- Parameters:
factory
- the web server factory to customize
-