public abstract class ServerSettings
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ServerSettings.Timeouts |
Constructor and Description |
---|
ServerSettings() |
public static ServerSettings create(com.typesafe.config.Config config)
public static ServerSettings create(java.lang.String configOverrides)
public static ServerSettings create(org.apache.pekko.actor.ActorSystem system)
public abstract java.util.Optional<Server> getServerHeader()
public abstract PreviewServerSettings getPreviewServerSettings()
public abstract ServerSettings.Timeouts getTimeouts()
public abstract int getMaxConnections()
public abstract int getPipeliningLimit()
public abstract boolean getRemoteAddressHeader()
public abstract boolean getRemoteAddressAttribute()
public abstract boolean getRawRequestUriHeader()
public abstract boolean getTransparentHeadRequests()
public abstract boolean getVerboseErrorMessages()
public abstract int getResponseHeaderSizeHint()
public abstract int getBacklog()
public abstract java.lang.Iterable<org.apache.pekko.io.Inet.SocketOption> getSocketOptions()
public abstract Host getDefaultHostHeader()
public abstract java.util.function.Supplier<java.util.Random> getWebsocketRandomFactory()
public abstract WebSocketSettings getWebsocketSettings()
public abstract ParserSettings getParserSettings()
public abstract java.util.Optional<java.lang.Object> getLogUnencryptedNetworkBytes()
public Http2ServerSettings getHttp2Settings()
public abstract int getDefaultHttpPort()
public abstract int getDefaultHttpsPort()
public abstract HttpResponse getTerminationDeadlineExceededResponse()
public abstract java.lang.String getParsingErrorHandler()
public abstract scala.concurrent.duration.FiniteDuration getStreamCancellationDelay()
public ServerSettings withServerHeader(java.util.Optional<Server> newValue)
public ServerSettings withPreviewServerSettings(PreviewServerSettings newValue)
public ServerSettings withTimeouts(ServerSettings.Timeouts newValue)
public ServerSettings withMaxConnections(int newValue)
public ServerSettings withPipeliningLimit(int newValue)
public ServerSettings withRemoteAddressHeader(boolean newValue)
public ServerSettings withRemoteAddressAttribute(boolean newValue)
public ServerSettings withRawRequestUriHeader(boolean newValue)
public ServerSettings withTransparentHeadRequests(boolean newValue)
public ServerSettings withVerboseErrorMessages(boolean newValue)
public ServerSettings withResponseHeaderSizeHint(int newValue)
public ServerSettings withBacklog(int newValue)
public ServerSettings withSocketOptions(java.lang.Iterable<org.apache.pekko.io.Inet.SocketOption> newValue)
public ServerSettings withDefaultHostHeader(Host newValue)
public ServerSettings withParserSettings(ParserSettings newValue)
public ServerSettings withWebsocketRandomFactory(java.util.function.Supplier<java.util.Random> newValue)
public ServerSettings withWebsocketSettings(WebSocketSettings newValue)
public ServerSettings withLogUnencryptedNetworkBytes(java.util.Optional<java.lang.Object> newValue)
public ServerSettings withHttp2Settings(Http2ServerSettings newValue)
public ServerSettings withDefaultHttpPort(int newValue)
public ServerSettings withDefaultHttpsPort(int newValue)
public ServerSettings withTerminationDeadlineExceededResponse(HttpResponse response)
public ServerSettings withParsingErrorHandler(java.lang.String newValue)
public ServerSettings withStreamCancellationDelay(scala.concurrent.duration.FiniteDuration newValue)