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 SummaryNested ClassesModifier and TypeClassDescriptionstatic final classstatic classNested classes/interfaces inherited from class org.apache.pekko.http.scaladsl.settings.ServerSettingsServerSettings.LogUnencryptedNetworkBytes$
- 
Constructor SummaryConstructorsConstructorDescriptionServerSettingsImpl(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 SummaryModifier 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.ServerSettingsgetBacklog, 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.ServerSettingscreate, create, create, getHttp2Settings, withDefaultHostHeader, withHttp2Settings, withLogUnencryptedNetworkBytes, withParserSettings, withServerHeader, withTimeouts, withWebsocketSettingsMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.EqualscanEqual, equalsMethods inherited from interface scala.ProductproductArity, productElement, productElementName, productElementNames, productIterator
- 
Constructor Details- 
ServerSettingsImplpublic 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
- 
fromSubConfigpublic static ServerSettingsImpl fromSubConfig(com.typesafe.config.Config root, com.typesafe.config.Config c) 
- 
prefix
- 
applypublic static T apply(org.apache.pekko.actor.ActorSystem system) 
- 
apply
- 
applypublic static T apply(com.typesafe.config.Config config) 
- 
serverHeader- Specified by:
- serverHeaderin class- ServerSettings
 
- 
timeouts- Specified by:
- timeoutsin class- ServerSettings
 
- 
maxConnectionspublic int maxConnections()- Specified by:
- maxConnectionsin class- ServerSettings
 
- 
pipeliningLimitpublic int pipeliningLimit()- Specified by:
- pipeliningLimitin class- ServerSettings
 
- 
remoteAddressAttributepublic boolean remoteAddressAttribute()- Specified by:
- remoteAddressAttributein class- ServerSettings
 
- 
rawRequestUriHeaderpublic boolean rawRequestUriHeader()- Specified by:
- rawRequestUriHeaderin class- ServerSettings
 
- 
transparentHeadRequestspublic boolean transparentHeadRequests()- Specified by:
- transparentHeadRequestsin class- ServerSettings
 
- 
verboseErrorMessagespublic boolean verboseErrorMessages()- Specified by:
- verboseErrorMessagesin class- ServerSettings
 
- 
responseHeaderSizeHintpublic int responseHeaderSizeHint()- Specified by:
- responseHeaderSizeHintin class- ServerSettings
 
- 
backlogpublic int backlog()- Specified by:
- backlogin class- ServerSettings
 
- 
logUnencryptedNetworkBytes- Specified by:
- logUnencryptedNetworkBytesin class- ServerSettings
 
- 
socketOptionspublic scala.collection.immutable.Seq<org.apache.pekko.io.Inet.SocketOption> socketOptions()- Specified by:
- socketOptionsin class- ServerSettings
 
- 
defaultHostHeader- Specified by:
- defaultHostHeaderin class- ServerSettings
 
- 
websocketSettings- Specified by:
- websocketSettingsin class- ServerSettings
 
- 
parserSettings- Specified by:
- parserSettingsin class- ServerSettings
 
- 
http2Settings- Specified by:
- http2Settingsin class- ServerSettings
 
- 
defaultHttpPortpublic int defaultHttpPort()- Specified by:
- defaultHttpPortin class- ServerSettings
 
- 
defaultHttpsPortpublic int defaultHttpsPort()- Specified by:
- defaultHttpsPortin class- ServerSettings
 
- 
terminationDeadlineExceededResponse- Specified by:
- terminationDeadlineExceededResponsein class- ServerSettings
 
- 
parsingErrorHandler- Specified by:
- parsingErrorHandlerin class- ServerSettings
 
- 
streamCancellationDelaypublic scala.concurrent.duration.FiniteDuration streamCancellationDelay()- Specified by:
- streamCancellationDelayin class- ServerSettings
 
- 
enableHttp2public 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 class- ServerSettings
- Returns:
- (undocumented)
 
- 
productPrefix- Specified by:
- productPrefixin interface- scala.Product
 
- 
parsingErrorHandlerInstanceDescription copied from class:ServerSettingsINTERNAL APIReturns an instance of the ParsingErrorHandler as specified by parsingErrorHandler- Specified by:
- parsingErrorHandlerInstancein class- ServerSettings
- Parameters:
- system- (undocumented)
- Returns:
- (undocumented)
 
 
-