Package akka.http.impl.settings
Class ServerSettingsImpl
- java.lang.Object
-
- akka.http.javadsl.settings.ServerSettings
-
- akka.http.scaladsl.settings.ServerSettings
-
- akka.http.impl.settings.ServerSettingsImpl
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Equals
,scala.Product
public final class ServerSettingsImpl extends ServerSettings implements scala.Product, java.io.Serializable
INTERNAL API- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServerSettingsImpl.Timeouts
static class
ServerSettingsImpl.Timeouts$
-
Nested classes/interfaces inherited from class akka.http.scaladsl.settings.ServerSettings
ServerSettings.LogUnencryptedNetworkBytes$
-
-
Constructor Summary
Constructors Constructor Description ServerSettingsImpl(scala.Option<Server> serverHeader, PreviewServerSettings previewServerSettings, ServerSettings.Timeouts timeouts, int maxConnections, int pipeliningLimit, boolean remoteAddressHeader, boolean remoteAddressAttribute, boolean rawRequestUriHeader, boolean transparentHeadRequests, boolean verboseErrorMessages, int responseHeaderSizeHint, int backlog, scala.Option<java.lang.Object> logUnencryptedNetworkBytes, scala.collection.immutable.Seq<akka.io.Inet.SocketOption> socketOptions, Host defaultHostHeader, WebSocketSettings websocketSettings, ParserSettings parserSettings, Http2ServerSettings http2Settings, int defaultHttpPort, int defaultHttpsPort, HttpResponse terminationDeadlineExceededResponse, java.lang.String parsingErrorHandler, scala.concurrent.duration.FiniteDuration streamCancellationDelay, boolean http2Enabled)
-
Method Summary
-
Methods inherited from class akka.http.scaladsl.settings.ServerSettings
getBacklog, getDefaultHostHeader, getDefaultHttpPort, getDefaultHttpsPort, getLogUnencryptedNetworkBytes, getMaxConnections, getParserSettings, getParsingErrorHandler, getPipeliningLimit, getPreviewServerSettings, getRawRequestUriHeader, getRemoteAddressAttribute, getRemoteAddressHeader, getResponseHeaderSizeHint, getServerHeader, getSocketOptions, getStreamCancellationDelay, getTerminationDeadlineExceededResponse, getTimeouts, getTransparentHeadRequests, getVerboseErrorMessages, getWebsocketRandomFactory, getWebsocketSettings, mapHttp2Settings, mapParserSettings, mapPreviewServerSettings, mapTimeouts, mapWebsocketSettings, timeoutsShortcut, withBacklog, withDefaultHostHeader, withDefaultHttpPort, withDefaultHttpsPort, withHttp2Enabled, withHttp2Settings, withLogUnencryptedNetworkBytes, withMaxConnections, withParserSettings, withParsingErrorHandler, withPipeliningLimit, withPreviewServerSettings, withRawRequestUriHeader, withRemoteAddressAttribute, withRemoteAddressHeader, withResponseHeaderSizeHint, withServerHeader, withSocketOptions, withSocketOptions, withStreamCancellationDelay, withTerminationDeadlineExceededResponse, withTimeouts, withTransparentHeadRequests, withVerboseErrorMessages, withWebsocketRandomFactory, withWebsocketRandomFactory, withWebsocketSettings
-
Methods inherited from class akka.http.javadsl.settings.ServerSettings
create, create, create, getHttp2Settings, withDefaultHostHeader, withHttp2Settings, withLogUnencryptedNetworkBytes, withParserSettings, withPreviewServerSettings, withServerHeader, withTimeouts, withWebsocketSettings
-
-
-
-
Constructor Detail
-
ServerSettingsImpl
public ServerSettingsImpl(scala.Option<Server> serverHeader, PreviewServerSettings previewServerSettings, ServerSettings.Timeouts timeouts, int maxConnections, int pipeliningLimit, boolean remoteAddressHeader, boolean remoteAddressAttribute, boolean rawRequestUriHeader, boolean transparentHeadRequests, boolean verboseErrorMessages, int responseHeaderSizeHint, int backlog, scala.Option<java.lang.Object> logUnencryptedNetworkBytes, scala.collection.immutable.Seq<akka.io.Inet.SocketOption> socketOptions, Host defaultHostHeader, WebSocketSettings websocketSettings, ParserSettings parserSettings, Http2ServerSettings http2Settings, int defaultHttpPort, int defaultHttpsPort, HttpResponse terminationDeadlineExceededResponse, java.lang.String parsingErrorHandler, scala.concurrent.duration.FiniteDuration streamCancellationDelay, boolean http2Enabled)
-
-
Method Detail
-
timeoutsShortcut
public static ServerSettings.Timeouts timeoutsShortcut(ServerSettings s)
-
fromSubConfig
public static ServerSettingsImpl fromSubConfig(com.typesafe.config.Config root, com.typesafe.config.Config c)
-
prefix
protected static java.lang.String prefix()
-
apply
public static T apply(akka.actor.ActorSystem system)
-
apply
public static T apply(java.lang.String configOverrides)
-
apply
public static T apply(com.typesafe.config.Config config)
-
serverHeader
public scala.Option<Server> serverHeader()
- Specified by:
serverHeader
in classServerSettings
-
previewServerSettings
public PreviewServerSettings previewServerSettings()
- Specified by:
previewServerSettings
in classServerSettings
-
timeouts
public ServerSettings.Timeouts timeouts()
- Specified by:
timeouts
in classServerSettings
-
maxConnections
public int maxConnections()
- Specified by:
maxConnections
in classServerSettings
-
pipeliningLimit
public int pipeliningLimit()
- Specified by:
pipeliningLimit
in classServerSettings
-
remoteAddressHeader
public boolean remoteAddressHeader()
- Specified by:
remoteAddressHeader
in classServerSettings
-
remoteAddressAttribute
public boolean remoteAddressAttribute()
- Specified by:
remoteAddressAttribute
in classServerSettings
-
rawRequestUriHeader
public boolean rawRequestUriHeader()
- Specified by:
rawRequestUriHeader
in classServerSettings
-
transparentHeadRequests
public boolean transparentHeadRequests()
- Specified by:
transparentHeadRequests
in classServerSettings
-
verboseErrorMessages
public boolean verboseErrorMessages()
- Specified by:
verboseErrorMessages
in classServerSettings
-
responseHeaderSizeHint
public int responseHeaderSizeHint()
- Specified by:
responseHeaderSizeHint
in classServerSettings
-
backlog
public int backlog()
- Specified by:
backlog
in classServerSettings
-
logUnencryptedNetworkBytes
public scala.Option<java.lang.Object> logUnencryptedNetworkBytes()
- Specified by:
logUnencryptedNetworkBytes
in classServerSettings
-
socketOptions
public scala.collection.immutable.Seq<akka.io.Inet.SocketOption> socketOptions()
- Specified by:
socketOptions
in classServerSettings
-
defaultHostHeader
public Host defaultHostHeader()
- Specified by:
defaultHostHeader
in classServerSettings
-
websocketSettings
public WebSocketSettings websocketSettings()
- Specified by:
websocketSettings
in classServerSettings
-
parserSettings
public ParserSettings parserSettings()
- Specified by:
parserSettings
in classServerSettings
-
http2Settings
public Http2ServerSettings http2Settings()
- Specified by:
http2Settings
in classServerSettings
-
defaultHttpPort
public int defaultHttpPort()
- Specified by:
defaultHttpPort
in classServerSettings
-
defaultHttpsPort
public int defaultHttpsPort()
- Specified by:
defaultHttpsPort
in classServerSettings
-
terminationDeadlineExceededResponse
public HttpResponse terminationDeadlineExceededResponse()
- Specified by:
terminationDeadlineExceededResponse
in classServerSettings
-
parsingErrorHandler
public java.lang.String parsingErrorHandler()
- Specified by:
parsingErrorHandler
in classServerSettings
-
streamCancellationDelay
public scala.concurrent.duration.FiniteDuration streamCancellationDelay()
- Specified by:
streamCancellationDelay
in classServerSettings
-
http2Enabled
public boolean http2Enabled()
- Specified by:
http2Enabled
in classServerSettings
-
websocketRandomFactory
public scala.Function0<java.util.Random> websocketRandomFactory()
- Specified by:
websocketRandomFactory
in classServerSettings
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefix
in interfacescala.Product
-
parsingErrorHandlerInstance
public ParsingErrorHandler parsingErrorHandlerInstance(akka.actor.ActorSystem system)
Description copied from class:ServerSettings
INTERNAL APIReturns an instance of the ParsingErrorHandler as specified by
parsingErrorHandler
- Specified by:
parsingErrorHandlerInstance
in classServerSettings
- Parameters:
system
- (undocumented)- Returns:
- (undocumented)
-
-