public abstract class ServerSettings extends ServerSettings
| Modifier and Type | Class and Description |
|---|---|
static class |
ServerSettings.LogUnencryptedNetworkBytes$ |
static interface |
ServerSettings.Timeouts |
| Constructor and Description |
|---|
ServerSettings() |
| Modifier and Type | Method and Description |
|---|---|
static ServerSettings |
apply(com.typesafe.config.Config config) |
static ServerSettings |
apply(java.lang.String configOverrides) |
abstract int |
backlog() |
abstract Host |
defaultHostHeader() |
abstract int |
defaultHttpPort() |
abstract int |
defaultHttpsPort() |
abstract boolean |
enableHttp2()
Configures the Http extension to bind using HTTP/2 if given an
pekko.http.scaladsl.HttpsConnectionContext. |
int |
getBacklog() |
Host |
getDefaultHostHeader() |
int |
getDefaultHttpPort() |
int |
getDefaultHttpsPort() |
java.util.Optional<java.lang.Object> |
getLogUnencryptedNetworkBytes() |
int |
getMaxConnections() |
ParserSettings |
getParserSettings() |
java.lang.String |
getParsingErrorHandler() |
int |
getPipeliningLimit() |
PreviewServerSettings |
getPreviewServerSettings()
Deprecated.
the preview server settings are now integrated into the main server settings (since 1.3.0)
|
boolean |
getRawRequestUriHeader() |
boolean |
getRemoteAddressAttribute() |
boolean |
getRemoteAddressHeader() |
int |
getResponseHeaderSizeHint() |
java.util.Optional<Server> |
getServerHeader() |
java.util.List<org.apache.pekko.io.Inet.SocketOption> |
getSocketOptions() |
scala.concurrent.duration.FiniteDuration |
getStreamCancellationDelay() |
HttpResponse |
getTerminationDeadlineExceededResponse() |
ServerSettings.Timeouts |
getTimeouts() |
boolean |
getTransparentHeadRequests() |
boolean |
getVerboseErrorMessages() |
java.lang.Object |
getWebsocketRandomFactory()
Deprecated.
Kept for binary compatibility; Use websocketSettings.getRandomFactory instead. Since Akka HTTP 10.2.0.
|
WebSocketSettings |
getWebsocketSettings() |
abstract Http2ServerSettings |
http2Settings() |
abstract scala.Option<java.lang.Object> |
logUnencryptedNetworkBytes() |
ServerSettings |
mapHttp2Settings(scala.Function1<Http2ServerSettings,Http2ServerSettings> f) |
ServerSettings |
mapParserSettings(scala.Function1<ParserSettings,ParserSettings> f) |
ServerSettings |
mapPreviewServerSettings(scala.Function1<PreviewServerSettings,PreviewServerSettings> f)
Deprecated.
the preview server settings are now integrated into the main server settings. Since 1.3.0.
|
ServerSettings |
mapTimeouts(scala.Function1<ServerSettings.Timeouts,ServerSettings.Timeouts> f) |
ServerSettings |
mapWebsocketSettings(scala.Function1<WebSocketSettings,WebSocketSettings> f) |
abstract int |
maxConnections() |
abstract ParserSettings |
parserSettings() |
abstract java.lang.String |
parsingErrorHandler() |
abstract ParsingErrorHandler |
parsingErrorHandlerInstance(org.apache.pekko.actor.ActorSystem system)
INTERNAL API
Returns an instance of the ParsingErrorHandler as specified by
parsingErrorHandler |
abstract int |
pipeliningLimit() |
abstract PreviewServerSettings |
previewServerSettings() |
abstract boolean |
rawRequestUriHeader() |
abstract boolean |
remoteAddressAttribute() |
abstract boolean |
remoteAddressHeader()
Deprecated.
use remote-address-attribute instead. Since Akka HTTP 10.2.0.
|
abstract int |
responseHeaderSizeHint() |
abstract scala.Option<Server> |
serverHeader() |
abstract scala.collection.immutable.Seq<org.apache.pekko.io.Inet.SocketOption> |
socketOptions() |
abstract scala.concurrent.duration.FiniteDuration |
streamCancellationDelay() |
abstract HttpResponse |
terminationDeadlineExceededResponse() |
abstract ServerSettings.Timeouts |
timeouts() |
static ServerSettings.Timeouts |
timeoutsShortcut(ServerSettings s) |
abstract boolean |
transparentHeadRequests() |
abstract boolean |
verboseErrorMessages() |
abstract scala.Function0<java.util.Random> |
websocketRandomFactory()
Deprecated.
Kept for binary compatibility; Use websocketSettings.randomFactory instead. Since Akka HTTP 10.1.1.
|
abstract WebSocketSettings |
websocketSettings() |
ServerSettings |
withBacklog(int newValue) |
ServerSettings |
withDefaultHostHeader(Host newValue) |
ServerSettings |
withDefaultHttpPort(int newValue) |
ServerSettings |
withDefaultHttpsPort(int newValue) |
ServerSettings |
withEnableHttp2(boolean newValue) |
ServerSettings |
withHttp2Settings(Http2ServerSettings newValue) |
ServerSettings |
withLogUnencryptedNetworkBytes(scala.Option<java.lang.Object> newValue) |
ServerSettings |
withMaxConnections(int newValue) |
ServerSettings |
withParserSettings(ParserSettings newValue) |
ServerSettings |
withParsingErrorHandler(java.lang.String newValue) |
ServerSettings |
withPipeliningLimit(int newValue) |
ServerSettings |
withPreviewServerSettings(PreviewServerSettings newValue)
Deprecated.
the preview server settings are now integrated into the main server settings (since 1.3.0)
|
ServerSettings |
withRawRequestUriHeader(boolean newValue) |
ServerSettings |
withRemoteAddressAttribute(boolean newValue) |
ServerSettings |
withRemoteAddressHeader(boolean newValue)
Deprecated.
since Pekko HTTP 1.3.0, use withRemoteAddressAttribute instead
|
ServerSettings |
withResponseHeaderSizeHint(int newValue) |
ServerSettings |
withServerHeader(scala.Option<Server> newValue) |
ServerSettings |
withSocketOptions(java.lang.Iterable<org.apache.pekko.io.Inet.SocketOption> newValue) |
ServerSettings |
withSocketOptions(scala.collection.immutable.Seq<org.apache.pekko.io.Inet.SocketOption> newValue) |
ServerSettings |
withStreamCancellationDelay(scala.concurrent.duration.FiniteDuration newValue) |
ServerSettings |
withTerminationDeadlineExceededResponse(HttpResponse response) |
ServerSettings |
withTimeouts(ServerSettings.Timeouts newValue) |
ServerSettings |
withTransparentHeadRequests(boolean newValue) |
ServerSettings |
withVerboseErrorMessages(boolean newValue) |
ServerSettings |
withWebsocketRandomFactory(scala.Function0<java.util.Random> newValue)
Deprecated.
Kept for binary compatibility; Use websocketSettings.withRandomFactoryFactory instead. Since Akka HTTP 10.2.0.
|
ServerSettings |
withWebsocketRandomFactory(java.util.function.Supplier<java.util.Random> newValue)
Deprecated.
Kept for binary compatibility; Use websocketSettings.withRandomFactoryFactory instead. Since Akka HTTP 10.2.0.
|
ServerSettings |
withWebsocketSettings(WebSocketSettings newValue) |
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 abstract boolean enableHttp2()
pekko.http.scaladsl.HttpsConnectionContext. Otherwise binds as plain HTTP.
enableHttp2 in class ServerSettingspublic 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)
newValue - (undocumented)public ServerSettings withMaxConnections(int newValue)
withMaxConnections in class ServerSettingspublic ServerSettings withPipeliningLimit(int newValue)
withPipeliningLimit in class ServerSettingspublic ServerSettings withRemoteAddressHeader(boolean newValue)
withRemoteAddressHeader in class ServerSettingsnewValue - (undocumented)public 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 withEnableHttp2(boolean newValue)
withEnableHttp2 in class ServerSettingsnewValue - (undocumented)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)