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, withWebsocketSettingspublic 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 ServerSettingspublic PreviewServerSettings getPreviewServerSettings()
getPreviewServerSettings in class ServerSettingspublic Host getDefaultHostHeader()
getDefaultHostHeader in class ServerSettingspublic int getPipeliningLimit()
getPipeliningLimit in class ServerSettingspublic ParserSettings getParserSettings()
getParserSettings in class ServerSettingspublic int getMaxConnections()
getMaxConnections in class ServerSettingspublic boolean getTransparentHeadRequests()
getTransparentHeadRequests in class ServerSettingspublic int getResponseHeaderSizeHint()
getResponseHeaderSizeHint in class ServerSettingspublic boolean getVerboseErrorMessages()
getVerboseErrorMessages in class ServerSettingspublic java.util.List<org.apache.pekko.io.Inet.SocketOption> getSocketOptions()
getSocketOptions in class ServerSettingspublic java.util.Optional<Server> getServerHeader()
getServerHeader in class ServerSettingspublic ServerSettings.Timeouts getTimeouts()
getTimeouts in class ServerSettingspublic boolean getRawRequestUriHeader()
getRawRequestUriHeader in class ServerSettingspublic boolean getRemoteAddressHeader()
getRemoteAddressHeader in class ServerSettingspublic boolean getRemoteAddressAttribute()
getRemoteAddressAttribute in class ServerSettingspublic java.util.Optional<java.lang.Object> getLogUnencryptedNetworkBytes()
getLogUnencryptedNetworkBytes in class ServerSettingspublic java.lang.Object getWebsocketRandomFactory()
public int getDefaultHttpPort()
getDefaultHttpPort in class ServerSettingspublic int getDefaultHttpsPort()
getDefaultHttpsPort in class ServerSettingspublic HttpResponse getTerminationDeadlineExceededResponse()
getTerminationDeadlineExceededResponse in class ServerSettingspublic java.lang.String getParsingErrorHandler()
getParsingErrorHandler in class ServerSettingspublic scala.concurrent.duration.FiniteDuration getStreamCancellationDelay()
getStreamCancellationDelay in class ServerSettingspublic ServerSettings withPreviewServerSettings(PreviewServerSettings newValue)
public ServerSettings withMaxConnections(int newValue)
withMaxConnections in class ServerSettingspublic ServerSettings withPipeliningLimit(int newValue)
withPipeliningLimit in class ServerSettingspublic ServerSettings withRemoteAddressHeader(boolean newValue)
withRemoteAddressHeader in class ServerSettingspublic ServerSettings withRemoteAddressAttribute(boolean newValue)
withRemoteAddressAttribute in class ServerSettingspublic ServerSettings withRawRequestUriHeader(boolean newValue)
withRawRequestUriHeader in class ServerSettingspublic ServerSettings withTransparentHeadRequests(boolean newValue)
withTransparentHeadRequests in class ServerSettingspublic ServerSettings withVerboseErrorMessages(boolean newValue)
withVerboseErrorMessages in class ServerSettingspublic ServerSettings withResponseHeaderSizeHint(int newValue)
withResponseHeaderSizeHint in class ServerSettingspublic ServerSettings withBacklog(int newValue)
withBacklog in class ServerSettingspublic ServerSettings withSocketOptions(java.lang.Iterable<org.apache.pekko.io.Inet.SocketOption> newValue)
withSocketOptions in class ServerSettingspublic ServerSettings withWebsocketRandomFactory(java.util.function.Supplier<java.util.Random> newValue)
withWebsocketRandomFactory in class ServerSettingspublic WebSocketSettings getWebsocketSettings()
getWebsocketSettings in class ServerSettingspublic ServerSettings withDefaultHttpPort(int newValue)
withDefaultHttpPort in class ServerSettingspublic ServerSettings withDefaultHttpsPort(int newValue)
withDefaultHttpsPort in class ServerSettingspublic ServerSettings withTerminationDeadlineExceededResponse(HttpResponse response)
withTerminationDeadlineExceededResponse in class ServerSettingspublic ServerSettings withParsingErrorHandler(java.lang.String newValue)
withParsingErrorHandler in class ServerSettingspublic ServerSettings withStreamCancellationDelay(scala.concurrent.duration.FiniteDuration newValue)
withStreamCancellationDelay in class ServerSettingspublic 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)