Class ServerSettings

  • Direct Known Subclasses:
    ServerSettings

    public abstract class ServerSettings
    extends java.lang.Object
    Public API but not intended for subclassing
    • Constructor Detail

      • ServerSettings

        public ServerSettings()
    • Method Detail

      • create

        public static ServerSettings create​(com.typesafe.config.Config config)
      • create

        public static ServerSettings create​(java.lang.String configOverrides)
      • create

        public static ServerSettings create​(akka.actor.ActorSystem system)
      • getServerHeader

        public abstract java.util.Optional<Server> getServerHeader()
      • getMaxConnections

        public abstract int getMaxConnections()
      • getPipeliningLimit

        public abstract int getPipeliningLimit()
      • getRemoteAddressHeader

        public abstract boolean getRemoteAddressHeader()
        Deprecated.
        since 10.2.0, use remoteAddressAttribute instead
        Returns:
        (undocumented)
      • getRemoteAddressAttribute

        public abstract boolean getRemoteAddressAttribute()
      • getRawRequestUriHeader

        public abstract boolean getRawRequestUriHeader()
      • getTransparentHeadRequests

        public abstract boolean getTransparentHeadRequests()
      • getVerboseErrorMessages

        public abstract boolean getVerboseErrorMessages()
      • getResponseHeaderSizeHint

        public abstract int getResponseHeaderSizeHint()
      • getBacklog

        public abstract int getBacklog()
      • getSocketOptions

        public abstract java.lang.Iterable<akka.io.Inet.SocketOption> getSocketOptions()
      • getDefaultHostHeader

        public abstract Host getDefaultHostHeader()
      • getWebsocketRandomFactory

        public abstract java.util.function.Supplier<java.util.Random> getWebsocketRandomFactory()
        Deprecated.
        Kept for binary compatibility; Use websocketSettings.getRandomFactory instead. Since 10.2.0.
      • getParserSettings

        public abstract ParserSettings getParserSettings()
      • getLogUnencryptedNetworkBytes

        public abstract java.util.Optional<java.lang.Object> getLogUnencryptedNetworkBytes()
      • getDefaultHttpPort

        public abstract int getDefaultHttpPort()
      • getDefaultHttpsPort

        public abstract int getDefaultHttpsPort()
      • getTerminationDeadlineExceededResponse

        public abstract HttpResponse getTerminationDeadlineExceededResponse()
      • getParsingErrorHandler

        public abstract java.lang.String getParsingErrorHandler()
      • getStreamCancellationDelay

        public abstract scala.concurrent.duration.FiniteDuration getStreamCancellationDelay()
      • http2Enabled

        public abstract boolean http2Enabled()
      • withServerHeader

        public ServerSettings withServerHeader​(java.util.Optional<Server> newValue)
      • withMaxConnections

        public ServerSettings withMaxConnections​(int newValue)
      • withPipeliningLimit

        public ServerSettings withPipeliningLimit​(int newValue)
      • withRemoteAddressHeader

        public ServerSettings withRemoteAddressHeader​(boolean newValue)
      • withRemoteAddressAttribute

        public ServerSettings withRemoteAddressAttribute​(boolean newValue)
      • withRawRequestUriHeader

        public ServerSettings withRawRequestUriHeader​(boolean newValue)
      • withTransparentHeadRequests

        public ServerSettings withTransparentHeadRequests​(boolean newValue)
      • withVerboseErrorMessages

        public ServerSettings withVerboseErrorMessages​(boolean newValue)
      • withResponseHeaderSizeHint

        public ServerSettings withResponseHeaderSizeHint​(int newValue)
      • withSocketOptions

        public ServerSettings withSocketOptions​(java.lang.Iterable<akka.io.Inet.SocketOption> newValue)
      • withWebsocketRandomFactory

        public ServerSettings withWebsocketRandomFactory​(java.util.function.Supplier<java.util.Random> newValue)
        Deprecated.
        Kept for binary compatibility; Use websocketSettings.withRandomFactoryFactory instead. Since 10.2.0.
      • withLogUnencryptedNetworkBytes

        public ServerSettings withLogUnencryptedNetworkBytes​(java.util.Optional<java.lang.Object> newValue)
      • withDefaultHttpPort

        public ServerSettings withDefaultHttpPort​(int newValue)
      • withDefaultHttpsPort

        public ServerSettings withDefaultHttpsPort​(int newValue)
      • withTerminationDeadlineExceededResponse

        public ServerSettings withTerminationDeadlineExceededResponse​(HttpResponse response)
      • withParsingErrorHandler

        public ServerSettings withParsingErrorHandler​(java.lang.String newValue)
      • withStreamCancellationDelay

        public ServerSettings withStreamCancellationDelay​(scala.concurrent.duration.FiniteDuration newValue)
      • withHttp2Enabled

        public ServerSettings withHttp2Enabled​(boolean enabled)