Class ServletWebServerFactoryCustomizer
java.lang.Object
org.springframework.boot.web.server.autoconfigure.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:
- 4.0.0
- Author:
- Brian Clozel, Stephane Nicoll, Olivier Lamy, Yunkun Huang, Scott Frederick, Lasse Wulff
-
Field Summary
Fields inherited from interface Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionServletWebServerFactoryCustomizer(ServerProperties serverProperties) Deprecated, for removal: This API element is subject to removal in a future version.ServletWebServerFactoryCustomizer(ServerProperties serverProperties, List<WebListenerRegistrar> webListenerRegistrars, List<CookieSameSiteSupplier> cookieSameSiteSuppliers, @Nullable SslBundles sslBundles) Deprecated, for removal: This API element is subject to removal in a future version.since 4.2.0 for removal in 4.4.0 in favor ofServletWebServerFactoryCustomizer(Environment, ServerProperties, List, List, SslBundles)ServletWebServerFactoryCustomizer(Environment environment, ServerProperties serverProperties, List<WebListenerRegistrar> webListenerRegistrars, List<CookieSameSiteSupplier> cookieSameSiteSuppliers, @Nullable SslBundles sslBundles) Create a newServletWebServerFactoryCustomizerinstance. -
Method Summary
-
Constructor Details
-
ServletWebServerFactoryCustomizer
@Deprecated(since="4.2.0", forRemoval=true) public ServletWebServerFactoryCustomizer(ServerProperties serverProperties) Deprecated, for removal: This API element is subject to removal in a future version.since 4.2.0 for removal in 4.4.0 in favor ofServletWebServerFactoryCustomizer(Environment, ServerProperties, List, List, SslBundles)Create a newServletWebServerFactoryCustomizerinstance.- Parameters:
serverProperties- the server properties
-
ServletWebServerFactoryCustomizer
@Deprecated(since="4.2.0", forRemoval=true) public ServletWebServerFactoryCustomizer(ServerProperties serverProperties, List<WebListenerRegistrar> webListenerRegistrars, List<CookieSameSiteSupplier> cookieSameSiteSuppliers, @Nullable SslBundles sslBundles) Deprecated, for removal: This API element is subject to removal in a future version.since 4.2.0 for removal in 4.4.0 in favor ofServletWebServerFactoryCustomizer(Environment, ServerProperties, List, List, SslBundles)Create a newServletWebServerFactoryCustomizerinstance.- Parameters:
serverProperties- the server propertieswebListenerRegistrars- the web listener registrarscookieSameSiteSuppliers- the cookie same-site supplierssslBundles- the SSL bundles
-
ServletWebServerFactoryCustomizer
public ServletWebServerFactoryCustomizer(Environment environment, ServerProperties serverProperties, List<WebListenerRegistrar> webListenerRegistrars, List<CookieSameSiteSupplier> cookieSameSiteSuppliers, @Nullable SslBundles sslBundles) Create a newServletWebServerFactoryCustomizerinstance.- Parameters:
environment- the environment.serverProperties- the server propertieswebListenerRegistrars- the web listener registrarscookieSameSiteSuppliers- the cookie same-site supplierssslBundles- the SSL bundles- Since:
- 4.2.0
-
-
Method Details
-
getOrder
-
customize
Description copied from interface:WebServerFactoryCustomizerCustomize the specifiedWebServerFactory.- Specified by:
customizein interfaceWebServerFactoryCustomizer<ConfigurableServletWebServerFactory>- Parameters:
factory- the web server factory to customize
-
ServletWebServerFactoryCustomizer(Environment, ServerProperties, List, List, SslBundles)