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
  • Constructor Details

    • ServletWebServerFactoryCustomizer

      public ServletWebServerFactoryCustomizer(ServerProperties serverProperties)
    • ServletWebServerFactoryCustomizer

      public ServletWebServerFactoryCustomizer(ServerProperties serverProperties, List<org.springframework.boot.web.servlet.WebListenerRegistrar> webListenerRegistrars)
  • Method Details

    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
    • customize

      public void customize(org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory factory)
      Specified by:
      customize in interface org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory>