Class ServerSettingsImpl
java.lang.Object
org.apache.pekko.http.javadsl.settings.ServerSettings
org.apache.pekko.http.scaladsl.settings.ServerSettings
org.apache.pekko.http.impl.settings.ServerSettingsImpl
- All Implemented Interfaces:
Serializable
,scala.Equals
,scala.Product
INTERNAL API
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static class
Nested classes/interfaces inherited from class org.apache.pekko.http.scaladsl.settings.ServerSettings
ServerSettings.LogUnencryptedNetworkBytes$
-
Constructor Summary
ConstructorsConstructorDescriptionServerSettingsImpl
(scala.Option<Server> serverHeader, PreviewServerSettings previewServerSettings, ServerSettings.Timeouts timeouts, int maxConnections, int pipeliningLimit, boolean remoteAddressAttribute, boolean rawRequestUriHeader, boolean transparentHeadRequests, boolean verboseErrorMessages, int responseHeaderSizeHint, int backlog, scala.Option<Object> logUnencryptedNetworkBytes, scala.collection.immutable.Seq<org.apache.pekko.io.Inet.SocketOption> socketOptions, Host defaultHostHeader, WebSocketSettings websocketSettings, ParserSettings parserSettings, Http2ServerSettings http2Settings, int defaultHttpPort, int defaultHttpsPort, HttpResponse terminationDeadlineExceededResponse, String parsingErrorHandler, scala.concurrent.duration.FiniteDuration streamCancellationDelay) -
Method Summary
Modifier and TypeMethodDescriptionstatic T
apply
(com.typesafe.config.Config config) static T
static T
apply
(org.apache.pekko.actor.ActorSystem system) int
backlog()
int
int
static ServerSettingsImpl
fromSubConfig
(com.typesafe.config.Config root, com.typesafe.config.Config c) scala.Option<Object>
int
parsingErrorHandlerInstance
(org.apache.pekko.actor.ActorSystem system) INTERNAL APIint
protected static String
prefix()
boolean
boolean
int
scala.Option<Server>
scala.collection.immutable.Seq<org.apache.pekko.io.Inet.SocketOption>
scala.concurrent.duration.FiniteDuration
timeouts()
static ServerSettings.Timeouts
boolean
boolean
Methods inherited from class org.apache.pekko.http.scaladsl.settings.ServerSettings
getBacklog, getDefaultHostHeader, getDefaultHttpPort, getDefaultHttpsPort, getLogUnencryptedNetworkBytes, getMaxConnections, getParserSettings, getParsingErrorHandler, getPipeliningLimit, getPreviewServerSettings, getRawRequestUriHeader, getRemoteAddressAttribute, getResponseHeaderSizeHint, getServerHeader, getSocketOptions, getStreamCancellationDelay, getTerminationDeadlineExceededResponse, getTimeouts, getTransparentHeadRequests, getVerboseErrorMessages, getWebsocketSettings, mapHttp2Settings, mapParserSettings, mapPreviewServerSettings, mapTimeouts, mapWebsocketSettings, timeoutsShortcut, withBacklog, withDefaultHostHeader, withDefaultHttpPort, withDefaultHttpsPort, withHttp2Settings, withLogUnencryptedNetworkBytes, withMaxConnections, withParserSettings, withParsingErrorHandler, withPipeliningLimit, withPreviewServerSettings, withRawRequestUriHeader, withRemoteAddressAttribute, withResponseHeaderSizeHint, withServerHeader, withSocketOptions, withSocketOptions, withStreamCancellationDelay, withTerminationDeadlineExceededResponse, withTimeouts, withTransparentHeadRequests, withVerboseErrorMessages, withWebsocketSettings
Methods inherited from class org.apache.pekko.http.javadsl.settings.ServerSettings
create, create, create, getHttp2Settings, withDefaultHostHeader, withHttp2Settings, withLogUnencryptedNetworkBytes, withParserSettings, withPreviewServerSettings, withServerHeader, withTimeouts, withWebsocketSettings
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator
-
Constructor Details
-
ServerSettingsImpl
public ServerSettingsImpl(scala.Option<Server> serverHeader, PreviewServerSettings previewServerSettings, ServerSettings.Timeouts timeouts, int maxConnections, int pipeliningLimit, boolean remoteAddressAttribute, boolean rawRequestUriHeader, boolean transparentHeadRequests, boolean verboseErrorMessages, int responseHeaderSizeHint, int backlog, scala.Option<Object> logUnencryptedNetworkBytes, scala.collection.immutable.Seq<org.apache.pekko.io.Inet.SocketOption> socketOptions, Host defaultHostHeader, WebSocketSettings websocketSettings, ParserSettings parserSettings, Http2ServerSettings http2Settings, int defaultHttpPort, int defaultHttpsPort, HttpResponse terminationDeadlineExceededResponse, String parsingErrorHandler, scala.concurrent.duration.FiniteDuration streamCancellationDelay)
-
-
Method Details
-
timeoutsShortcut
-
fromSubConfig
public static ServerSettingsImpl fromSubConfig(com.typesafe.config.Config root, com.typesafe.config.Config c) -
prefix
-
apply
public static T apply(org.apache.pekko.actor.ActorSystem system) -
apply
-
apply
public static T apply(com.typesafe.config.Config config) -
serverHeader
- Specified by:
serverHeader
in classServerSettings
-
previewServerSettings
- Specified by:
previewServerSettings
in classServerSettings
-
timeouts
- Specified by:
timeouts
in classServerSettings
-
maxConnections
public int maxConnections()- Specified by:
maxConnections
in classServerSettings
-
pipeliningLimit
public int pipeliningLimit()- Specified by:
pipeliningLimit
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
- Specified by:
logUnencryptedNetworkBytes
in classServerSettings
-
socketOptions
public scala.collection.immutable.Seq<org.apache.pekko.io.Inet.SocketOption> socketOptions()- Specified by:
socketOptions
in classServerSettings
-
defaultHostHeader
- Specified by:
defaultHostHeader
in classServerSettings
-
websocketSettings
- Specified by:
websocketSettings
in classServerSettings
-
parserSettings
- Specified by:
parserSettings
in classServerSettings
-
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
- Specified by:
terminationDeadlineExceededResponse
in classServerSettings
-
parsingErrorHandler
- Specified by:
parsingErrorHandler
in classServerSettings
-
streamCancellationDelay
public scala.concurrent.duration.FiniteDuration streamCancellationDelay()- Specified by:
streamCancellationDelay
in classServerSettings
-
productPrefix
- Specified by:
productPrefix
in interfacescala.Product
-
parsingErrorHandlerInstance
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)
-