Package akka.http.scaladsl.settings
Class ServerSettings
- java.lang.Object
-
- akka.http.javadsl.settings.ServerSettings
-
- akka.http.scaladsl.settings.ServerSettings
-
- Direct Known Subclasses:
ServerSettingsImpl
public abstract class ServerSettings extends ServerSettings
Public API but not intended for subclassing
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServerSettings.LogUnencryptedNetworkBytes$
static interface
ServerSettings.Timeouts
-
Constructor Summary
Constructors Constructor Description ServerSettings()
-
Method Summary
-
Methods inherited from class akka.http.javadsl.settings.ServerSettings
create, create, create, getHttp2Settings, withDefaultHostHeader, withHttp2Settings, withLogUnencryptedNetworkBytes, withParserSettings, withPreviewServerSettings, withServerHeader, withTimeouts, withWebsocketSettings
-
-
-
-
Method Detail
-
timeoutsShortcut
public static ServerSettings.Timeouts timeoutsShortcut(ServerSettings s)
-
apply
public static ServerSettings apply(com.typesafe.config.Config config)
-
apply
public static ServerSettings apply(java.lang.String configOverrides)
-
serverHeader
public abstract scala.Option<Server> serverHeader()
-
previewServerSettings
public abstract PreviewServerSettings previewServerSettings()
-
timeouts
public abstract ServerSettings.Timeouts timeouts()
-
maxConnections
public abstract int maxConnections()
-
pipeliningLimit
public abstract int pipeliningLimit()
-
remoteAddressHeader
public abstract boolean remoteAddressHeader()
Deprecated.use remote-address-attribute instead. Since 10.2.0.
-
remoteAddressAttribute
public abstract boolean remoteAddressAttribute()
-
rawRequestUriHeader
public abstract boolean rawRequestUriHeader()
-
transparentHeadRequests
public abstract boolean transparentHeadRequests()
-
verboseErrorMessages
public abstract boolean verboseErrorMessages()
-
responseHeaderSizeHint
public abstract int responseHeaderSizeHint()
-
backlog
public abstract int backlog()
-
socketOptions
public abstract scala.collection.immutable.Seq<akka.io.Inet.SocketOption> socketOptions()
-
defaultHostHeader
public abstract Host defaultHostHeader()
-
websocketRandomFactory
public abstract scala.Function0<java.util.Random> websocketRandomFactory()
Deprecated.Kept for binary compatibility; Use websocketSettings.randomFactory instead. Since 10.1.1.
-
websocketSettings
public abstract WebSocketSettings websocketSettings()
-
parserSettings
public abstract ParserSettings parserSettings()
-
logUnencryptedNetworkBytes
public abstract scala.Option<java.lang.Object> logUnencryptedNetworkBytes()
-
http2Settings
public abstract Http2ServerSettings http2Settings()
-
defaultHttpPort
public abstract int defaultHttpPort()
-
defaultHttpsPort
public abstract int defaultHttpsPort()
-
terminationDeadlineExceededResponse
public abstract HttpResponse terminationDeadlineExceededResponse()
-
parsingErrorHandler
public abstract java.lang.String parsingErrorHandler()
-
streamCancellationDelay
public abstract scala.concurrent.duration.FiniteDuration streamCancellationDelay()
-
http2Enabled
public abstract boolean http2Enabled()
- Specified by:
http2Enabled
in classServerSettings
-
getBacklog
public int getBacklog()
- Specified by:
getBacklog
in classServerSettings
-
getPreviewServerSettings
public PreviewServerSettings getPreviewServerSettings()
- Specified by:
getPreviewServerSettings
in classServerSettings
-
getDefaultHostHeader
public Host getDefaultHostHeader()
- Specified by:
getDefaultHostHeader
in classServerSettings
-
getPipeliningLimit
public int getPipeliningLimit()
- Specified by:
getPipeliningLimit
in classServerSettings
-
getParserSettings
public ParserSettings getParserSettings()
- Specified by:
getParserSettings
in classServerSettings
-
getMaxConnections
public int getMaxConnections()
- Specified by:
getMaxConnections
in classServerSettings
-
getTransparentHeadRequests
public boolean getTransparentHeadRequests()
- Specified by:
getTransparentHeadRequests
in classServerSettings
-
getResponseHeaderSizeHint
public int getResponseHeaderSizeHint()
- Specified by:
getResponseHeaderSizeHint
in classServerSettings
-
getVerboseErrorMessages
public boolean getVerboseErrorMessages()
- Specified by:
getVerboseErrorMessages
in classServerSettings
-
getSocketOptions
public java.util.List<akka.io.Inet.SocketOption> getSocketOptions()
- Specified by:
getSocketOptions
in classServerSettings
-
getServerHeader
public java.util.Optional<Server> getServerHeader()
- Specified by:
getServerHeader
in classServerSettings
-
getTimeouts
public ServerSettings.Timeouts getTimeouts()
- Specified by:
getTimeouts
in classServerSettings
-
getRawRequestUriHeader
public boolean getRawRequestUriHeader()
- Specified by:
getRawRequestUriHeader
in classServerSettings
-
getRemoteAddressHeader
public boolean getRemoteAddressHeader()
- Specified by:
getRemoteAddressHeader
in classServerSettings
- Returns:
- (undocumented)
-
getRemoteAddressAttribute
public boolean getRemoteAddressAttribute()
- Specified by:
getRemoteAddressAttribute
in classServerSettings
-
getLogUnencryptedNetworkBytes
public java.util.Optional<java.lang.Object> getLogUnencryptedNetworkBytes()
- Specified by:
getLogUnencryptedNetworkBytes
in classServerSettings
-
getWebsocketRandomFactory
public java.lang.Object getWebsocketRandomFactory()
Deprecated.Kept for binary compatibility; Use websocketSettings.getRandomFactory instead. Since 10.2.0.
-
getDefaultHttpPort
public int getDefaultHttpPort()
- Specified by:
getDefaultHttpPort
in classServerSettings
-
getDefaultHttpsPort
public int getDefaultHttpsPort()
- Specified by:
getDefaultHttpsPort
in classServerSettings
-
getTerminationDeadlineExceededResponse
public HttpResponse getTerminationDeadlineExceededResponse()
- Specified by:
getTerminationDeadlineExceededResponse
in classServerSettings
-
getParsingErrorHandler
public java.lang.String getParsingErrorHandler()
- Specified by:
getParsingErrorHandler
in classServerSettings
-
getStreamCancellationDelay
public scala.concurrent.duration.FiniteDuration getStreamCancellationDelay()
- Specified by:
getStreamCancellationDelay
in classServerSettings
-
withPreviewServerSettings
public ServerSettings withPreviewServerSettings(PreviewServerSettings newValue)
-
withMaxConnections
public ServerSettings withMaxConnections(int newValue)
- Overrides:
withMaxConnections
in classServerSettings
-
withPipeliningLimit
public ServerSettings withPipeliningLimit(int newValue)
- Overrides:
withPipeliningLimit
in classServerSettings
-
withRemoteAddressHeader
public ServerSettings withRemoteAddressHeader(boolean newValue)
- Overrides:
withRemoteAddressHeader
in classServerSettings
-
withRemoteAddressAttribute
public ServerSettings withRemoteAddressAttribute(boolean newValue)
- Overrides:
withRemoteAddressAttribute
in classServerSettings
-
withRawRequestUriHeader
public ServerSettings withRawRequestUriHeader(boolean newValue)
- Overrides:
withRawRequestUriHeader
in classServerSettings
-
withTransparentHeadRequests
public ServerSettings withTransparentHeadRequests(boolean newValue)
- Overrides:
withTransparentHeadRequests
in classServerSettings
-
withVerboseErrorMessages
public ServerSettings withVerboseErrorMessages(boolean newValue)
- Overrides:
withVerboseErrorMessages
in classServerSettings
-
withResponseHeaderSizeHint
public ServerSettings withResponseHeaderSizeHint(int newValue)
- Overrides:
withResponseHeaderSizeHint
in classServerSettings
-
withBacklog
public ServerSettings withBacklog(int newValue)
- Overrides:
withBacklog
in classServerSettings
-
withSocketOptions
public ServerSettings withSocketOptions(java.lang.Iterable<akka.io.Inet.SocketOption> newValue)
- Overrides:
withSocketOptions
in classServerSettings
-
withWebsocketRandomFactory
public ServerSettings withWebsocketRandomFactory(java.util.function.Supplier<java.util.Random> newValue)
Deprecated.Kept for binary compatibility; Use websocketSettings.withRandomFactoryFactory instead. Since 10.2.0.- Overrides:
withWebsocketRandomFactory
in classServerSettings
-
getWebsocketSettings
public WebSocketSettings getWebsocketSettings()
- Specified by:
getWebsocketSettings
in classServerSettings
-
withDefaultHttpPort
public ServerSettings withDefaultHttpPort(int newValue)
- Overrides:
withDefaultHttpPort
in classServerSettings
-
withDefaultHttpsPort
public ServerSettings withDefaultHttpsPort(int newValue)
- Overrides:
withDefaultHttpsPort
in classServerSettings
-
withTerminationDeadlineExceededResponse
public ServerSettings withTerminationDeadlineExceededResponse(HttpResponse response)
- Overrides:
withTerminationDeadlineExceededResponse
in classServerSettings
-
withParsingErrorHandler
public ServerSettings withParsingErrorHandler(java.lang.String newValue)
- Overrides:
withParsingErrorHandler
in classServerSettings
-
withStreamCancellationDelay
public ServerSettings withStreamCancellationDelay(scala.concurrent.duration.FiniteDuration newValue)
- Overrides:
withStreamCancellationDelay
in classServerSettings
-
withHttp2Enabled
public ServerSettings withHttp2Enabled(boolean enabled)
- Overrides:
withHttp2Enabled
in classServerSettings
-
withTimeouts
public ServerSettings withTimeouts(ServerSettings.Timeouts newValue)
-
withServerHeader
public ServerSettings withServerHeader(scala.Option<Server> newValue)
-
withLogUnencryptedNetworkBytes
public ServerSettings withLogUnencryptedNetworkBytes(scala.Option<java.lang.Object> newValue)
-
withDefaultHostHeader
public ServerSettings withDefaultHostHeader(Host newValue)
-
withParserSettings
public ServerSettings withParserSettings(ParserSettings newValue)
-
withWebsocketRandomFactory
public ServerSettings withWebsocketRandomFactory(scala.Function0<java.util.Random> newValue)
Deprecated.Kept for binary compatibility; Use websocketSettings.withRandomFactoryFactory instead. Since 10.2.0.
-
withWebsocketSettings
public ServerSettings withWebsocketSettings(WebSocketSettings newValue)
-
withSocketOptions
public ServerSettings withSocketOptions(scala.collection.immutable.Seq<akka.io.Inet.SocketOption> newValue)
-
withHttp2Settings
public ServerSettings withHttp2Settings(Http2ServerSettings newValue)
-
mapHttp2Settings
public ServerSettings mapHttp2Settings(scala.Function1<Http2ServerSettings,Http2ServerSettings> f)
-
mapParserSettings
public ServerSettings mapParserSettings(scala.Function1<ParserSettings,ParserSettings> f)
-
mapPreviewServerSettings
public ServerSettings mapPreviewServerSettings(scala.Function1<PreviewServerSettings,PreviewServerSettings> f)
-
mapWebsocketSettings
public ServerSettings mapWebsocketSettings(scala.Function1<WebSocketSettings,WebSocketSettings> f)
-
mapTimeouts
public ServerSettings mapTimeouts(scala.Function1<ServerSettings.Timeouts,ServerSettings.Timeouts> f)
-
parsingErrorHandlerInstance
public abstract ParsingErrorHandler parsingErrorHandlerInstance(akka.actor.ActorSystem system)
INTERNAL APIReturns an instance of the ParsingErrorHandler as specified by
parsingErrorHandler
- Parameters:
system
- (undocumented)- Returns:
- (undocumented)
-
-