Interface ConfigurableJettyWebServerFactory

All Superinterfaces:
org.springframework.boot.web.server.ConfigurableWebServerFactory, org.springframework.boot.web.error.ErrorPageRegistry, org.springframework.boot.web.server.WebServerFactory
All Known Implementing Classes:
JettyReactiveWebServerFactory, JettyServletWebServerFactory, JettyWebServerFactory

public interface ConfigurableJettyWebServerFactory extends org.springframework.boot.web.server.ConfigurableWebServerFactory
ConfigurableWebServerFactory for Jetty-specific features.
Since:
4.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Add JettyServerCustomizers that will be applied to the Server before it is started.
    void
    setAcceptors(int acceptors)
    Set the number of acceptor threads to use.
    void
    setMaxConnections(int maxConnections)
    Sets the maximum number of concurrent connections.
    void
    setSelectors(int selectors)
    Set the number of selector threads to use.
    void
    setThreadPool(@Nullable org.eclipse.jetty.util.thread.ThreadPool threadPool)
    Set the ThreadPool that should be used by the Server.
    void
    setUseForwardHeaders(boolean useForwardHeaders)
    Set if x-forward-* headers should be processed.

    Methods inherited from interface org.springframework.boot.web.server.ConfigurableWebServerFactory

    setAddress, setCompression, setErrorPages, setHttp2, setPort, setServerHeader, setShutdown, setSsl, setSslBundles

    Methods inherited from interface org.springframework.boot.web.error.ErrorPageRegistry

    addErrorPages
  • 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(@Nullable 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
    • setMaxConnections

      void setMaxConnections(int maxConnections)
      Sets the maximum number of concurrent connections.
      Parameters:
      maxConnections - the maximum number of concurrent connections