Class ServerSettings
java.lang.Object
org.apache.pekko.http.javadsl.settings.ServerSettings
org.apache.pekko.http.scaladsl.settings.ServerSettings
- Direct Known Subclasses:
- ServerSettingsImpl
Public API but not intended for subclassing
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic interface
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ServerSettingsapply(com.typesafe.config.Config config) static ServerSettingsabstract intbacklog()abstract Hostabstract intabstract intabstract booleanConfigures the Http extension to bind using HTTP/2 if given anpekko.http.scaladsl.HttpsConnectionContext.intintintintintbooleanbooleanintList<org.apache.pekko.io.Inet.SocketOption>scala.concurrent.duration.FiniteDurationbooleanbooleanabstract Http2ServerSettingsabstract scala.Option<Object>mapHttp2Settings(scala.Function1<Http2ServerSettings, Http2ServerSettings> f) mapParserSettings(scala.Function1<ParserSettings, ParserSettings> f) mapTimeouts(scala.Function1<ServerSettings.Timeouts, ServerSettings.Timeouts> f) mapWebsocketSettings(scala.Function1<WebSocketSettings, WebSocketSettings> f) abstract intabstract ParserSettingsabstract Stringabstract ParsingErrorHandlerparsingErrorHandlerInstance(org.apache.pekko.actor.ActorSystem system) INTERNAL APIabstract intabstract booleanabstract booleanabstract intabstract scala.Option<Server>abstract scala.collection.immutable.Seq<org.apache.pekko.io.Inet.SocketOption>abstract scala.concurrent.duration.FiniteDurationabstract HttpResponseabstract ServerSettings.Timeoutstimeouts()static ServerSettings.Timeoutsabstract booleanabstract booleanabstract WebSocketSettingswithBacklog(int newValue) withDefaultHostHeader(Host newValue) withDefaultHttpPort(int newValue) withDefaultHttpsPort(int newValue) withEnableHttp2(boolean newValue) withHttp2Settings(Http2ServerSettings newValue) withLogUnencryptedNetworkBytes(scala.Option<Object> newValue) withMaxConnections(int newValue) withParserSettings(ParserSettings newValue) withParsingErrorHandler(String newValue) withPipeliningLimit(int newValue) withRawRequestUriHeader(boolean newValue) withRemoteAddressAttribute(boolean newValue) withResponseHeaderSizeHint(int newValue) withServerHeader(scala.Option<Server> newValue) withSocketOptions(Iterable<org.apache.pekko.io.Inet.SocketOption> newValue) withSocketOptions(scala.collection.immutable.Seq<org.apache.pekko.io.Inet.SocketOption> newValue) withStreamCancellationDelay(scala.concurrent.duration.FiniteDuration newValue) withTimeouts(ServerSettings.Timeouts newValue) withTransparentHeadRequests(boolean newValue) withVerboseErrorMessages(boolean newValue) withWebsocketSettings(WebSocketSettings newValue) Methods inherited from class org.apache.pekko.http.javadsl.settings.ServerSettingscreate, create, create, getHttp2Settings, withDefaultHostHeader, withHttp2Settings, withLogUnencryptedNetworkBytes, withParserSettings, withServerHeader, withTimeouts, withWebsocketSettings
- 
Constructor Details- 
ServerSettingspublic ServerSettings()
 
- 
- 
Method Details- 
timeoutsShortcut
- 
apply
- 
apply
- 
serverHeader
- 
timeouts
- 
maxConnectionspublic abstract int maxConnections()
- 
pipeliningLimitpublic abstract int pipeliningLimit()
- 
remoteAddressAttributepublic abstract boolean remoteAddressAttribute()
- 
rawRequestUriHeaderpublic abstract boolean rawRequestUriHeader()
- 
transparentHeadRequestspublic abstract boolean transparentHeadRequests()
- 
verboseErrorMessagespublic abstract boolean verboseErrorMessages()
- 
responseHeaderSizeHintpublic abstract int responseHeaderSizeHint()
- 
backlogpublic abstract int backlog()
- 
socketOptionspublic abstract scala.collection.immutable.Seq<org.apache.pekko.io.Inet.SocketOption> socketOptions()
- 
defaultHostHeader
- 
websocketSettings
- 
parserSettings
- 
logUnencryptedNetworkBytes
- 
http2Settings
- 
defaultHttpPortpublic abstract int defaultHttpPort()
- 
defaultHttpsPortpublic abstract int defaultHttpsPort()
- 
terminationDeadlineExceededResponse
- 
parsingErrorHandler
- 
streamCancellationDelaypublic abstract scala.concurrent.duration.FiniteDuration streamCancellationDelay()
- 
enableHttp2public abstract boolean enableHttp2()Configures 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)
- Since:
- 1.3.0
 
- 
getBacklogpublic int getBacklog()- Specified by:
- getBacklogin class- ServerSettings
 
- 
getDefaultHostHeader- Specified by:
- getDefaultHostHeaderin class- ServerSettings
 
- 
getPipeliningLimitpublic int getPipeliningLimit()- Specified by:
- getPipeliningLimitin class- ServerSettings
 
- 
getParserSettings- Specified by:
- getParserSettingsin class- ServerSettings
 
- 
getMaxConnectionspublic int getMaxConnections()- Specified by:
- getMaxConnectionsin class- ServerSettings
 
- 
getTransparentHeadRequestspublic boolean getTransparentHeadRequests()- Specified by:
- getTransparentHeadRequestsin class- ServerSettings
 
- 
getResponseHeaderSizeHintpublic int getResponseHeaderSizeHint()- Specified by:
- getResponseHeaderSizeHintin class- ServerSettings
 
- 
getVerboseErrorMessagespublic boolean getVerboseErrorMessages()- Specified by:
- getVerboseErrorMessagesin class- ServerSettings
 
- 
getSocketOptions- Specified by:
- getSocketOptionsin class- ServerSettings
 
- 
getServerHeader- Specified by:
- getServerHeaderin class- ServerSettings
 
- 
getTimeouts- Specified by:
- getTimeoutsin class- ServerSettings
 
- 
getRawRequestUriHeaderpublic boolean getRawRequestUriHeader()- Specified by:
- getRawRequestUriHeaderin class- ServerSettings
 
- 
getRemoteAddressAttributepublic boolean getRemoteAddressAttribute()- Specified by:
- getRemoteAddressAttributein class- ServerSettings
 
- 
getLogUnencryptedNetworkBytes- Specified by:
- getLogUnencryptedNetworkBytesin class- ServerSettings
 
- 
getDefaultHttpPortpublic int getDefaultHttpPort()- Specified by:
- getDefaultHttpPortin class- ServerSettings
 
- 
getDefaultHttpsPortpublic int getDefaultHttpsPort()- Specified by:
- getDefaultHttpsPortin class- ServerSettings
 
- 
getTerminationDeadlineExceededResponse- Specified by:
- getTerminationDeadlineExceededResponsein class- ServerSettings
 
- 
getParsingErrorHandler- Specified by:
- getParsingErrorHandlerin class- ServerSettings
 
- 
getStreamCancellationDelaypublic scala.concurrent.duration.FiniteDuration getStreamCancellationDelay()- Specified by:
- getStreamCancellationDelayin class- ServerSettings
 
- 
withMaxConnections- Overrides:
- withMaxConnectionsin class- ServerSettings
 
- 
withPipeliningLimit- Overrides:
- withPipeliningLimitin class- ServerSettings
 
- 
withRemoteAddressAttribute- Overrides:
- withRemoteAddressAttributein class- ServerSettings
 
- 
withRawRequestUriHeader- Overrides:
- withRawRequestUriHeaderin class- ServerSettings
 
- 
withTransparentHeadRequests- Overrides:
- withTransparentHeadRequestsin class- ServerSettings
 
- 
withVerboseErrorMessages- Overrides:
- withVerboseErrorMessagesin class- ServerSettings
 
- 
withResponseHeaderSizeHint- Overrides:
- withResponseHeaderSizeHintin class- ServerSettings
 
- 
withBacklog- Overrides:
- withBacklogin class- ServerSettings
 
- 
withSocketOptions- Overrides:
- withSocketOptionsin class- ServerSettings
 
- 
getWebsocketSettings- Specified by:
- getWebsocketSettingsin class- ServerSettings
 
- 
withDefaultHttpPort- Overrides:
- withDefaultHttpPortin class- ServerSettings
 
- 
withDefaultHttpsPort- Overrides:
- withDefaultHttpsPortin class- ServerSettings
 
- 
withTerminationDeadlineExceededResponse- Overrides:
- withTerminationDeadlineExceededResponsein class- ServerSettings
 
- 
withParsingErrorHandler- Overrides:
- withParsingErrorHandlerin class- ServerSettings
 
- 
withStreamCancellationDelaypublic ServerSettings withStreamCancellationDelay(scala.concurrent.duration.FiniteDuration newValue) - Overrides:
- withStreamCancellationDelayin class- ServerSettings
 
- 
withEnableHttp2- Overrides:
- withEnableHttp2in class- ServerSettings
- Parameters:
- newValue- (undocumented)
- Returns:
- (undocumented)
 
- 
withTimeouts
- 
withServerHeader
- 
withLogUnencryptedNetworkBytes
- 
withDefaultHostHeader
- 
withParserSettings
- 
withWebsocketSettings
- 
withSocketOptionspublic ServerSettings withSocketOptions(scala.collection.immutable.Seq<org.apache.pekko.io.Inet.SocketOption> newValue) 
- 
withHttp2Settings
- 
mapHttp2Settings
- 
mapParserSettings
- 
mapWebsocketSettings
- 
mapTimeoutspublic ServerSettings mapTimeouts(scala.Function1<ServerSettings.Timeouts, ServerSettings.Timeouts> f) 
- 
parsingErrorHandlerInstancepublic abstract ParsingErrorHandler parsingErrorHandlerInstance(org.apache.pekko.actor.ActorSystem system) INTERNAL APIReturns an instance of the ParsingErrorHandler as specified by parsingErrorHandler- Parameters:
- system- (undocumented)
- Returns:
- (undocumented)
 
 
-