Class JettyConfig

  • All Implemented Interfaces:
    io.deephaven.server.config.ServerConfig

    @Immutable
    public abstract class JettyConfig
    extends java.lang.Object
    implements io.deephaven.server.config.ServerConfig
    The jetty server configuration.
    • Constructor Detail

      • JettyConfig

        public JettyConfig()
    • Method Detail

      • defaultConfig

        public static JettyConfig defaultConfig()
        The default configuration is suitable for local development purposes. It inherits all of the defaults, which are documented on each individual method. In brief, the default server starts up on all interfaces with plaintext port 10000, a scheduler pool size of 4, and a max inbound message size of 100 MiB.
      • port

        @Default
        public int port()
        The port. Defaults to 443 if ServerConfig.ssl() is present, otherwise defaults to 10000.
        Specified by:
        port in interface io.deephaven.server.config.ServerConfig
      • http1

        @Nullable
        public abstract java.lang.Boolean http1()
        Include HTTP/1.1.
      • sniHostCheck

        @Default
        public boolean sniHostCheck()
        Include sniHostCheck.
      • http2StreamIdleTimeout

        public abstract java.util.OptionalLong http2StreamIdleTimeout()
      • httpCompression

        @Nullable
        public abstract java.lang.Boolean httpCompression()
        Include HTTP compression.
      • http2StreamIdleTimeoutOrDefault

        public long http2StreamIdleTimeoutOrDefault()
        How long can a stream be idle in milliseconds before it should be shut down. Non-positive values disable this feature. Default is zero.
      • websocketsOrDefault

        public final JettyConfig.WebsocketsSupport websocketsOrDefault()
        Returns websockets() if explicitly set. If ServerConfig.proxyHint() is true, returns false. Otherwise, defaults to true when ServerConfig.ssl() is empty, and false when ServerConfig.ssl() is present.
      • http1OrDefault

        public final boolean http1OrDefault()
        Returns http1() if explicitly set. If ServerConfig.proxyHint() is true, returns false. Otherwise, defaults to true. This may become more strict in the future, see #2787).
      • httpCompressionOrDefault

        public final boolean httpCompressionOrDefault()
        Returns httpCompression() if explicitly set, otherwise returns true.