Class JettySettings

java.lang.Object
org.apache.juneau.microservice.jetty.JettySettings

public class JettySettings extends Object
Programmatic settings for the Jetty server contributed by JettyConfiguration.

Users who need to override the defaults pulled from Config / ManifestFile should contribute a @Bean JettySettings from their own @Configuration class. Any value left null on this settings bean falls back to the corresponding Config / ManifestFile entry, then to a hard-coded default.

Example:

@Configuration public class MyAppConfig { @Bean public JettySettings jettySettings() { return JettySettings.create() .ports(8080, 0) .build(); } }

See Also:
Since:
10.0.0
  • Method Details

    • create

      public static JettySettings.Builder create()
      Creates a new builder for this object.
      Returns:
      A new builder.
    • getPorts

      public int[] getPorts()
      Returns the candidate ports to try when binding the Jetty server, in priority order.
      Returns:
      The ports, or null if not set.
    • getJettyXml

      public String getJettyXml()
      Returns the raw jetty.xml contents to use when building the server.
      Returns:
      The XML contents, or null if not set.
    • getJettyXmlResolveVars

      Returns whether SVL variables in the jetty.xml file should be resolved.
      Returns:
      The resolve-vars flag, or null if not set.
    • getStopTimeout

      Returns the bounded graceful-shutdown drain timeout for the Jetty server.
      Returns:
      The drain timeout, or null if not set.
    • getShutdownSettleDelay

      Returns the settle delay applied between flipping the readiness probe out of service and stopping the connector.
      Returns:
      The settle delay, or null if not set.