Class ServerSettings

java.lang.Object
akka.http.javadsl.settings.ServerSettings
Direct Known Subclasses:
ServerSettings

public abstract class ServerSettings extends Object
Public API but not intended for subclassing
  • Constructor Details

    • ServerSettings

      public ServerSettings()
  • Method Details

    • create

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

      public static ServerSettings create(String configOverrides)
    • create

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

      public abstract Optional<Server> getServerHeader()
    • getPreviewServerSettings

      public abstract PreviewServerSettings getPreviewServerSettings()
    • getTimeouts

      public abstract ServerSettings.Timeouts getTimeouts()
    • 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 Iterable<akka.io.Inet.SocketOption> getSocketOptions()
    • getDefaultHostHeader

      public abstract Host getDefaultHostHeader()
    • getWebsocketRandomFactory

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

      public abstract WebSocketSettings getWebsocketSettings()
    • getParserSettings

      public abstract ParserSettings getParserSettings()
    • getLogUnencryptedNetworkBytes

      public abstract Optional<Object> getLogUnencryptedNetworkBytes()
    • getHttp2Settings

      public Http2ServerSettings getHttp2Settings()
    • getDefaultHttpPort

      public abstract int getDefaultHttpPort()
    • getDefaultHttpsPort

      public abstract int getDefaultHttpsPort()
    • getTerminationDeadlineExceededResponse

      public abstract HttpResponse getTerminationDeadlineExceededResponse()
    • getParsingErrorHandler

      public abstract String getParsingErrorHandler()
    • getStreamCancellationDelay

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

      public abstract boolean http2Enabled()
    • withServerHeader

      public ServerSettings withServerHeader(Optional<Server> newValue)
    • withPreviewServerSettings

      public ServerSettings withPreviewServerSettings(PreviewServerSettings newValue)
    • withTimeouts

      public ServerSettings withTimeouts(ServerSettings.Timeouts 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)
    • withBacklog

      public ServerSettings withBacklog(int newValue)
    • withSocketOptions

      public ServerSettings withSocketOptions(Iterable<akka.io.Inet.SocketOption> newValue)
    • withDefaultHostHeader

      public ServerSettings withDefaultHostHeader(Host newValue)
    • withParserSettings

      public ServerSettings withParserSettings(ParserSettings newValue)
    • withWebsocketRandomFactory

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

      public ServerSettings withWebsocketSettings(WebSocketSettings newValue)
    • withLogUnencryptedNetworkBytes

      public ServerSettings withLogUnencryptedNetworkBytes(Optional<Object> newValue)
    • withHttp2Settings

      public ServerSettings withHttp2Settings(Http2ServerSettings newValue)
    • withDefaultHttpPort

      public ServerSettings withDefaultHttpPort(int newValue)
    • withDefaultHttpsPort

      public ServerSettings withDefaultHttpsPort(int newValue)
    • withTerminationDeadlineExceededResponse

      public ServerSettings withTerminationDeadlineExceededResponse(HttpResponse response)
    • withParsingErrorHandler

      public ServerSettings withParsingErrorHandler(String newValue)
    • withStreamCancellationDelay

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

      public ServerSettings withHttp2Enabled(boolean enabled)