Class ServerSettings

java.lang.Object
org.apache.pekko.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(org.apache.pekko.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()
    • 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<org.apache.pekko.io.Inet.SocketOption> getSocketOptions()
    • getDefaultHostHeader

      public abstract Host getDefaultHostHeader()
    • 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()
    • 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)
    • 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<org.apache.pekko.io.Inet.SocketOption> newValue)
    • withDefaultHostHeader

      public ServerSettings withDefaultHostHeader(Host newValue)
    • withParserSettings

      public ServerSettings withParserSettings(ParserSettings newValue)
    • 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)