Interface ConfigurableJettyWebServerFactory

All Superinterfaces:
ConfigurableWebServerFactory, ErrorPageRegistry, WebServerFactory
All Known Implementing Classes:
JettyReactiveWebServerFactory, JettyServletWebServerFactory

public interface ConfigurableJettyWebServerFactory extends ConfigurableWebServerFactory
ConfigurableWebServerFactory for Jetty-specific features.
Since:
2.0.0
See Also:
  • Method Details

    • setAcceptors

      void setAcceptors(int acceptors)
      Set the number of acceptor threads to use.
      Parameters:
      acceptors - the number of acceptor threads to use
    • setThreadPool

      void setThreadPool(org.eclipse.jetty.util.thread.ThreadPool threadPool)
      Set the ThreadPool that should be used by the Server. If set to null (default), the Server creates a ThreadPool implicitly.
      Parameters:
      threadPool - the ThreadPool to be used
    • setSelectors

      void setSelectors(int selectors)
      Set the number of selector threads to use.
      Parameters:
      selectors - the number of selector threads to use
    • setUseForwardHeaders

      void setUseForwardHeaders(boolean useForwardHeaders)
      Set if x-forward-* headers should be processed.
      Parameters:
      useForwardHeaders - if x-forward headers should be used
    • addServerCustomizers

      void addServerCustomizers(JettyServerCustomizer... customizers)
      Add JettyServerCustomizers that will be applied to the Server before it is started.
      Parameters:
      customizers - the customizers to add