public abstract class ServerSettings extends ServerSettings
Modifier and Type | Class and Description |
---|---|
static class |
ServerSettings.LogUnencryptedNetworkBytes$ |
static interface |
ServerSettings.Timeouts |
Constructor and Description |
---|
ServerSettings() |
create, create, create, getHttp2Settings, withDefaultHostHeader, withHttp2Settings, withLogUnencryptedNetworkBytes, withParserSettings, withPreviewServerSettings, withServerHeader, withTimeouts, withWebsocketSettings
public static ServerSettings.Timeouts timeoutsShortcut(ServerSettings s)
public static ServerSettings apply(com.typesafe.config.Config config)
public static ServerSettings apply(java.lang.String configOverrides)
public abstract scala.Option<Server> serverHeader()
public abstract PreviewServerSettings previewServerSettings()
public abstract ServerSettings.Timeouts timeouts()
public abstract int maxConnections()
public abstract int pipeliningLimit()
public abstract boolean remoteAddressHeader()
public abstract boolean remoteAddressAttribute()
public abstract boolean rawRequestUriHeader()
public abstract boolean transparentHeadRequests()
public abstract boolean verboseErrorMessages()
public abstract int responseHeaderSizeHint()
public abstract int backlog()
public abstract scala.collection.immutable.Seq<org.apache.pekko.io.Inet.SocketOption> socketOptions()
public abstract Host defaultHostHeader()
public abstract scala.Function0<java.util.Random> websocketRandomFactory()
public abstract WebSocketSettings websocketSettings()
public abstract ParserSettings parserSettings()
public abstract scala.Option<java.lang.Object> logUnencryptedNetworkBytes()
public abstract Http2ServerSettings http2Settings()
public abstract int defaultHttpPort()
public abstract int defaultHttpsPort()
public abstract HttpResponse terminationDeadlineExceededResponse()
public abstract java.lang.String parsingErrorHandler()
public abstract scala.concurrent.duration.FiniteDuration streamCancellationDelay()
public int getBacklog()
getBacklog
in class ServerSettings
public PreviewServerSettings getPreviewServerSettings()
getPreviewServerSettings
in class ServerSettings
public Host getDefaultHostHeader()
getDefaultHostHeader
in class ServerSettings
public int getPipeliningLimit()
getPipeliningLimit
in class ServerSettings
public ParserSettings getParserSettings()
getParserSettings
in class ServerSettings
public int getMaxConnections()
getMaxConnections
in class ServerSettings
public boolean getTransparentHeadRequests()
getTransparentHeadRequests
in class ServerSettings
public int getResponseHeaderSizeHint()
getResponseHeaderSizeHint
in class ServerSettings
public boolean getVerboseErrorMessages()
getVerboseErrorMessages
in class ServerSettings
public java.util.List<org.apache.pekko.io.Inet.SocketOption> getSocketOptions()
getSocketOptions
in class ServerSettings
public java.util.Optional<Server> getServerHeader()
getServerHeader
in class ServerSettings
public ServerSettings.Timeouts getTimeouts()
getTimeouts
in class ServerSettings
public boolean getRawRequestUriHeader()
getRawRequestUriHeader
in class ServerSettings
public boolean getRemoteAddressHeader()
getRemoteAddressHeader
in class ServerSettings
public boolean getRemoteAddressAttribute()
getRemoteAddressAttribute
in class ServerSettings
public java.util.Optional<java.lang.Object> getLogUnencryptedNetworkBytes()
getLogUnencryptedNetworkBytes
in class ServerSettings
public java.lang.Object getWebsocketRandomFactory()
public int getDefaultHttpPort()
getDefaultHttpPort
in class ServerSettings
public int getDefaultHttpsPort()
getDefaultHttpsPort
in class ServerSettings
public HttpResponse getTerminationDeadlineExceededResponse()
getTerminationDeadlineExceededResponse
in class ServerSettings
public java.lang.String getParsingErrorHandler()
getParsingErrorHandler
in class ServerSettings
public scala.concurrent.duration.FiniteDuration getStreamCancellationDelay()
getStreamCancellationDelay
in class ServerSettings
public ServerSettings withPreviewServerSettings(PreviewServerSettings newValue)
public ServerSettings withMaxConnections(int newValue)
withMaxConnections
in class ServerSettings
public ServerSettings withPipeliningLimit(int newValue)
withPipeliningLimit
in class ServerSettings
public ServerSettings withRemoteAddressHeader(boolean newValue)
withRemoteAddressHeader
in class ServerSettings
public ServerSettings withRemoteAddressAttribute(boolean newValue)
withRemoteAddressAttribute
in class ServerSettings
public ServerSettings withRawRequestUriHeader(boolean newValue)
withRawRequestUriHeader
in class ServerSettings
public ServerSettings withTransparentHeadRequests(boolean newValue)
withTransparentHeadRequests
in class ServerSettings
public ServerSettings withVerboseErrorMessages(boolean newValue)
withVerboseErrorMessages
in class ServerSettings
public ServerSettings withResponseHeaderSizeHint(int newValue)
withResponseHeaderSizeHint
in class ServerSettings
public ServerSettings withBacklog(int newValue)
withBacklog
in class ServerSettings
public ServerSettings withSocketOptions(java.lang.Iterable<org.apache.pekko.io.Inet.SocketOption> newValue)
withSocketOptions
in class ServerSettings
public ServerSettings withWebsocketRandomFactory(java.util.function.Supplier<java.util.Random> newValue)
withWebsocketRandomFactory
in class ServerSettings
public WebSocketSettings getWebsocketSettings()
getWebsocketSettings
in class ServerSettings
public ServerSettings withDefaultHttpPort(int newValue)
withDefaultHttpPort
in class ServerSettings
public ServerSettings withDefaultHttpsPort(int newValue)
withDefaultHttpsPort
in class ServerSettings
public ServerSettings withTerminationDeadlineExceededResponse(HttpResponse response)
withTerminationDeadlineExceededResponse
in class ServerSettings
public ServerSettings withParsingErrorHandler(java.lang.String newValue)
withParsingErrorHandler
in class ServerSettings
public ServerSettings withStreamCancellationDelay(scala.concurrent.duration.FiniteDuration newValue)
withStreamCancellationDelay
in class ServerSettings
public ServerSettings withTimeouts(ServerSettings.Timeouts newValue)
public ServerSettings withServerHeader(scala.Option<Server> newValue)
public ServerSettings withLogUnencryptedNetworkBytes(scala.Option<java.lang.Object> newValue)
public ServerSettings withDefaultHostHeader(Host newValue)
public ServerSettings withParserSettings(ParserSettings newValue)
public ServerSettings withWebsocketRandomFactory(scala.Function0<java.util.Random> newValue)
public ServerSettings withWebsocketSettings(WebSocketSettings newValue)
public ServerSettings withSocketOptions(scala.collection.immutable.Seq<org.apache.pekko.io.Inet.SocketOption> newValue)
public ServerSettings withHttp2Settings(Http2ServerSettings newValue)
public ServerSettings mapHttp2Settings(scala.Function1<Http2ServerSettings,Http2ServerSettings> f)
public ServerSettings mapParserSettings(scala.Function1<ParserSettings,ParserSettings> f)
public ServerSettings mapPreviewServerSettings(scala.Function1<PreviewServerSettings,PreviewServerSettings> f)
public ServerSettings mapWebsocketSettings(scala.Function1<WebSocketSettings,WebSocketSettings> f)
public ServerSettings mapTimeouts(scala.Function1<ServerSettings.Timeouts,ServerSettings.Timeouts> f)
public abstract ParsingErrorHandler parsingErrorHandlerInstance(org.apache.pekko.actor.ActorSystem system)
Returns an instance of the ParsingErrorHandler as specified by parsingErrorHandler
system
- (undocumented)