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 classstatic classNested classes/interfaces inherited from class org.apache.pekko.http.scaladsl.settings.ServerSettings
ServerSettings.LogUnencryptedNetworkBytes$ -
Constructor Summary
ConstructorsConstructorDescriptionServerSettingsImpl(scala.Option<Server> serverHeader, 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, boolean enableHttp2) -
Method Summary
Modifier and TypeMethodDescriptionstatic Tapply(com.typesafe.config.Config config) static Tstatic Tapply(org.apache.pekko.actor.ActorSystem system) intbacklog()intintbooleanConfigures the Http extension to bind using HTTP/2 if given anpekko.http.scaladsl.HttpsConnectionContext.static ServerSettingsImplfromSubConfig(com.typesafe.config.Config root, com.typesafe.config.Config c) scala.Option<Object>intparsingErrorHandlerInstance(org.apache.pekko.actor.ActorSystem system) INTERNAL APIintprotected static Stringprefix()booleanbooleanintscala.Option<Server>scala.collection.immutable.Seq<org.apache.pekko.io.Inet.SocketOption>scala.concurrent.duration.FiniteDurationtimeouts()static ServerSettings.TimeoutsbooleanbooleanMethods inherited from class org.apache.pekko.http.scaladsl.settings.ServerSettings
getBacklog, getDefaultHostHeader, getDefaultHttpPort, getDefaultHttpsPort, getLogUnencryptedNetworkBytes, getMaxConnections, getParserSettings, getParsingErrorHandler, getPipeliningLimit, getRawRequestUriHeader, getRemoteAddressAttribute, getResponseHeaderSizeHint, getServerHeader, getSocketOptions, getStreamCancellationDelay, getTerminationDeadlineExceededResponse, getTimeouts, getTransparentHeadRequests, getVerboseErrorMessages, getWebsocketSettings, mapHttp2Settings, mapParserSettings, mapTimeouts, mapWebsocketSettings, timeoutsShortcut, withBacklog, withDefaultHostHeader, withDefaultHttpPort, withDefaultHttpsPort, withEnableHttp2, withHttp2Settings, withLogUnencryptedNetworkBytes, withMaxConnections, withParserSettings, withParsingErrorHandler, withPipeliningLimit, withRawRequestUriHeader, withRemoteAddressAttribute, withResponseHeaderSizeHint, withServerHeader, withSocketOptions, withSocketOptions, withStreamCancellationDelay, withTerminationDeadlineExceededResponse, withTimeouts, withTransparentHeadRequests, withVerboseErrorMessages, withWebsocketSettingsMethods inherited from class org.apache.pekko.http.javadsl.settings.ServerSettings
create, create, create, getHttp2Settings, withDefaultHostHeader, withHttp2Settings, withLogUnencryptedNetworkBytes, withParserSettings, withServerHeader, withTimeouts, withWebsocketSettingsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.Equals
canEqual, equalsMethods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator
-
Constructor Details
-
ServerSettingsImpl
public ServerSettingsImpl(scala.Option<Server> serverHeader, 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, boolean enableHttp2)
-
-
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:
serverHeaderin classServerSettings
-
timeouts
- Specified by:
timeoutsin classServerSettings
-
maxConnections
public int maxConnections()- Specified by:
maxConnectionsin classServerSettings
-
pipeliningLimit
public int pipeliningLimit()- Specified by:
pipeliningLimitin classServerSettings
-
remoteAddressAttribute
public boolean remoteAddressAttribute()- Specified by:
remoteAddressAttributein classServerSettings
-
rawRequestUriHeader
public boolean rawRequestUriHeader()- Specified by:
rawRequestUriHeaderin classServerSettings
-
transparentHeadRequests
public boolean transparentHeadRequests()- Specified by:
transparentHeadRequestsin classServerSettings
-
verboseErrorMessages
public boolean verboseErrorMessages()- Specified by:
verboseErrorMessagesin classServerSettings
-
responseHeaderSizeHint
public int responseHeaderSizeHint()- Specified by:
responseHeaderSizeHintin classServerSettings
-
backlog
public int backlog()- Specified by:
backlogin classServerSettings
-
logUnencryptedNetworkBytes
- Specified by:
logUnencryptedNetworkBytesin classServerSettings
-
socketOptions
public scala.collection.immutable.Seq<org.apache.pekko.io.Inet.SocketOption> socketOptions()- Specified by:
socketOptionsin classServerSettings
-
defaultHostHeader
- Specified by:
defaultHostHeaderin classServerSettings
-
websocketSettings
- Specified by:
websocketSettingsin classServerSettings
-
parserSettings
- Specified by:
parserSettingsin classServerSettings
-
http2Settings
- Specified by:
http2Settingsin classServerSettings
-
defaultHttpPort
public int defaultHttpPort()- Specified by:
defaultHttpPortin classServerSettings
-
defaultHttpsPort
public int defaultHttpsPort()- Specified by:
defaultHttpsPortin classServerSettings
-
terminationDeadlineExceededResponse
- Specified by:
terminationDeadlineExceededResponsein classServerSettings
-
parsingErrorHandler
- Specified by:
parsingErrorHandlerin classServerSettings
-
streamCancellationDelay
public scala.concurrent.duration.FiniteDuration streamCancellationDelay()- Specified by:
streamCancellationDelayin classServerSettings
-
enableHttp2
public boolean enableHttp2()Description copied from class:ServerSettingsConfigures the Http extension to bind using HTTP/2 if given anpekko.http.scaladsl.HttpsConnectionContext. Otherwise binds as plain HTTP.- Specified by:
enableHttp2in classServerSettings- Returns:
- (undocumented)
-
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
parsingErrorHandlerInstance
Description copied from class:ServerSettingsINTERNAL APIReturns an instance of the ParsingErrorHandler as specified by
parsingErrorHandler- Specified by:
parsingErrorHandlerInstancein classServerSettings- Parameters:
system- (undocumented)- Returns:
- (undocumented)
-