Class TomcatWebServerFactoryCustomizer

java.lang.Object
org.springframework.boot.autoconfigure.web.embedded.TomcatWebServerFactoryCustomizer
All Implemented Interfaces:
org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.embedded.tomcat.ConfigurableTomcatWebServerFactory>, org.springframework.core.Ordered

public class TomcatWebServerFactoryCustomizer extends Object implements org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.embedded.tomcat.ConfigurableTomcatWebServerFactory>, org.springframework.core.Ordered
Customization for Tomcat-specific features common for both Servlet and Reactive servers.
Since:
2.0.0
  • Constructor Details

    • TomcatWebServerFactoryCustomizer

      public TomcatWebServerFactoryCustomizer(org.springframework.core.env.Environment environment, ServerProperties serverProperties)
  • Method Details

    • getOrder

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

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