Class ServerSettings
java.lang.Object
org.apache.pekko.http.javadsl.settings.ServerSettings
- Direct Known Subclasses:
- ServerSettings
Public API but not intended for subclassing
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ServerSettingscreate(com.typesafe.config.Config config) static ServerSettingsstatic ServerSettingscreate(org.apache.pekko.actor.ActorSystem system) abstract booleanConfigures the Http extension to bind using HTTP/2 if given anpekko.http.scaladsl.HttpsConnectionContext.abstract intabstract Hostabstract intabstract intabstract intabstract ParserSettingsabstract Stringabstract intabstract booleanabstract booleanabstract intabstract Iterable<org.apache.pekko.io.Inet.SocketOption>abstract scala.concurrent.duration.FiniteDurationabstract HttpResponseabstract ServerSettings.Timeoutsabstract booleanabstract booleanabstract WebSocketSettingswithBacklog(int newValue) withDefaultHostHeader(Host newValue) withDefaultHttpPort(int newValue) withDefaultHttpsPort(int newValue) withEnableHttp2(boolean newValue) withHttp2Settings(Http2ServerSettings newValue) withLogUnencryptedNetworkBytes(Optional<Object> newValue) withMaxConnections(int newValue) withParserSettings(ParserSettings newValue) withParsingErrorHandler(String newValue) withPipeliningLimit(int newValue) withRawRequestUriHeader(boolean newValue) withRemoteAddressAttribute(boolean newValue) withResponseHeaderSizeHint(int newValue) withServerHeader(Optional<Server> newValue) withSocketOptions(Iterable<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) 
- 
Constructor Details- 
ServerSettingspublic ServerSettings()
 
- 
- 
Method Details- 
create
- 
create
- 
create
- 
getServerHeader
- 
getTimeouts
- 
getMaxConnectionspublic abstract int getMaxConnections()
- 
getPipeliningLimitpublic abstract int getPipeliningLimit()
- 
getRemoteAddressAttributepublic abstract boolean getRemoteAddressAttribute()
- 
getRawRequestUriHeaderpublic abstract boolean getRawRequestUriHeader()
- 
getTransparentHeadRequestspublic abstract boolean getTransparentHeadRequests()
- 
getVerboseErrorMessagespublic abstract boolean getVerboseErrorMessages()
- 
getResponseHeaderSizeHintpublic abstract int getResponseHeaderSizeHint()
- 
getBacklogpublic abstract int getBacklog()
- 
getSocketOptions
- 
getDefaultHostHeader
- 
getWebsocketSettings
- 
getParserSettings
- 
getLogUnencryptedNetworkBytes
- 
getHttp2Settings
- 
getDefaultHttpPortpublic abstract int getDefaultHttpPort()
- 
getDefaultHttpsPortpublic abstract int getDefaultHttpsPort()
- 
getTerminationDeadlineExceededResponse
- 
getParsingErrorHandler
- 
getStreamCancellationDelaypublic abstract scala.concurrent.duration.FiniteDuration getStreamCancellationDelay()
- 
enableHttp2public abstract boolean enableHttp2()Configures the Http extension to bind using HTTP/2 if given anpekko.http.scaladsl.HttpsConnectionContext. Otherwise binds as plain HTTP.- Returns:
- (undocumented)
- Since:
- 1.3.0
 
- 
withServerHeader
- 
withTimeouts
- 
withMaxConnections
- 
withPipeliningLimit
- 
withRemoteAddressAttribute
- 
withRawRequestUriHeader
- 
withTransparentHeadRequests
- 
withVerboseErrorMessages
- 
withResponseHeaderSizeHint
- 
withBacklog
- 
withSocketOptions
- 
withDefaultHostHeader
- 
withParserSettings
- 
withWebsocketSettings
- 
withLogUnencryptedNetworkBytes
- 
withHttp2Settings
- 
withDefaultHttpPort
- 
withDefaultHttpsPort
- 
withTerminationDeadlineExceededResponse
- 
withParsingErrorHandler
- 
withStreamCancellationDelaypublic ServerSettings withStreamCancellationDelay(scala.concurrent.duration.FiniteDuration newValue) 
- 
withEnableHttp2- Parameters:
- newValue- (undocumented)
- Returns:
- (undocumented)
- Since:
- 1.3.0
 
 
-