Class ServletWebServerFactoryCustomizer
java.lang.Object
org.springframework.boot.autoconfigure.web.servlet.ServletWebServerFactoryCustomizer
- All Implemented Interfaces:
org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory>
,org.springframework.core.Ordered
public class ServletWebServerFactoryCustomizer
extends Object
implements org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory>, org.springframework.core.Ordered
WebServerFactoryCustomizer
to apply ServerProperties
and
WebListenerRegistrars
to servlet web servers.- Since:
- 2.0.0
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionServletWebServerFactoryCustomizer
(ServerProperties serverProperties) ServletWebServerFactoryCustomizer
(ServerProperties serverProperties, List<org.springframework.boot.web.servlet.WebListenerRegistrar> webListenerRegistrars) -
Method Summary
-
Constructor Details
-
ServletWebServerFactoryCustomizer
-
ServletWebServerFactoryCustomizer
public ServletWebServerFactoryCustomizer(ServerProperties serverProperties, List<org.springframework.boot.web.servlet.WebListenerRegistrar> webListenerRegistrars)
-
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-
customize
public void customize(org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory factory) - Specified by:
customize
in interfaceorg.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory>
-