Class ServletWebServerFactoryCustomizer
java.lang.Object
org.springframework.boot.web.server.autoconfigure.servlet.ServletWebServerFactoryCustomizer
- All Implemented Interfaces:
WebServerFactoryCustomizer<ConfigurableServletWebServerFactory>,org.springframework.core.Ordered
public class ServletWebServerFactoryCustomizer
extends Object
implements WebServerFactoryCustomizer<ConfigurableServletWebServerFactory>, org.springframework.core.Ordered
WebServerFactoryCustomizer to apply ServerProperties and
WebListenerRegistrars to servlet web servers.- Since:
- 4.0.0
-
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, List<CookieSameSiteSupplier> cookieSameSiteSuppliers, @Nullable org.springframework.boot.ssl.SslBundles sslBundles) -
Method Summary
-
Constructor Details
-
ServletWebServerFactoryCustomizer
-
ServletWebServerFactoryCustomizer
public ServletWebServerFactoryCustomizer(ServerProperties serverProperties, List<WebListenerRegistrar> webListenerRegistrars, List<CookieSameSiteSupplier> cookieSameSiteSuppliers, @Nullable org.springframework.boot.ssl.SslBundles sslBundles)
-
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
customize
Description copied from interface:WebServerFactoryCustomizerCustomize the specifiedWebServerFactory.- Specified by:
customizein interfaceWebServerFactoryCustomizer<ConfigurableServletWebServerFactory>- Parameters:
factory- the web server factory to customize
-