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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interface -
Constructor Summary
Constructors -
Method Summary
Modifier 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.ServerSettings
create, create, create, getHttp2Settings, withDefaultHostHeader, withHttp2Settings, withLogUnencryptedNetworkBytes, withParserSettings, withServerHeader, withTimeouts, withWebsocketSettings
-
Constructor Details
-
ServerSettings
public ServerSettings()
-
-
Method Details
-
timeoutsShortcut
-
apply
-
apply
-
serverHeader
-
timeouts
-
maxConnections
public abstract int maxConnections() -
pipeliningLimit
public abstract int pipeliningLimit() -
remoteAddressAttribute
public abstract boolean remoteAddressAttribute() -
rawRequestUriHeader
public abstract boolean rawRequestUriHeader() -
transparentHeadRequests
public abstract boolean transparentHeadRequests() -
verboseErrorMessages
public abstract boolean verboseErrorMessages() -
responseHeaderSizeHint
public abstract int responseHeaderSizeHint() -
backlog
public abstract int backlog() -
socketOptions
public abstract scala.collection.immutable.Seq<org.apache.pekko.io.Inet.SocketOption> socketOptions() -
defaultHostHeader
-
websocketSettings
-
parserSettings
-
logUnencryptedNetworkBytes
-
http2Settings
-
defaultHttpPort
public abstract int defaultHttpPort() -
defaultHttpsPort
public abstract int defaultHttpsPort() -
terminationDeadlineExceededResponse
-
parsingErrorHandler
-
streamCancellationDelay
public abstract scala.concurrent.duration.FiniteDuration streamCancellationDelay() -
enableHttp2
public 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 classServerSettings- Returns:
- (undocumented)
- Since:
- 1.3.0
-
getBacklog
public int getBacklog()- Specified by:
getBacklogin classServerSettings
-
getDefaultHostHeader
- Specified by:
getDefaultHostHeaderin classServerSettings
-
getPipeliningLimit
public int getPipeliningLimit()- Specified by:
getPipeliningLimitin classServerSettings
-
getParserSettings
- Specified by:
getParserSettingsin classServerSettings
-
getMaxConnections
public int getMaxConnections()- Specified by:
getMaxConnectionsin classServerSettings
-
getTransparentHeadRequests
public boolean getTransparentHeadRequests()- Specified by:
getTransparentHeadRequestsin classServerSettings
-
getResponseHeaderSizeHint
public int getResponseHeaderSizeHint()- Specified by:
getResponseHeaderSizeHintin classServerSettings
-
getVerboseErrorMessages
public boolean getVerboseErrorMessages()- Specified by:
getVerboseErrorMessagesin classServerSettings
-
getSocketOptions
- Specified by:
getSocketOptionsin classServerSettings
-
getServerHeader
- Specified by:
getServerHeaderin classServerSettings
-
getTimeouts
- Specified by:
getTimeoutsin classServerSettings
-
getRawRequestUriHeader
public boolean getRawRequestUriHeader()- Specified by:
getRawRequestUriHeaderin classServerSettings
-
getRemoteAddressAttribute
public boolean getRemoteAddressAttribute()- Specified by:
getRemoteAddressAttributein classServerSettings
-
getLogUnencryptedNetworkBytes
- Specified by:
getLogUnencryptedNetworkBytesin classServerSettings
-
getDefaultHttpPort
public int getDefaultHttpPort()- Specified by:
getDefaultHttpPortin classServerSettings
-
getDefaultHttpsPort
public int getDefaultHttpsPort()- Specified by:
getDefaultHttpsPortin classServerSettings
-
getTerminationDeadlineExceededResponse
- Specified by:
getTerminationDeadlineExceededResponsein classServerSettings
-
getParsingErrorHandler
- Specified by:
getParsingErrorHandlerin classServerSettings
-
getStreamCancellationDelay
public scala.concurrent.duration.FiniteDuration getStreamCancellationDelay()- Specified by:
getStreamCancellationDelayin classServerSettings
-
withMaxConnections
- Overrides:
withMaxConnectionsin classServerSettings
-
withPipeliningLimit
- Overrides:
withPipeliningLimitin classServerSettings
-
withRemoteAddressAttribute
- Overrides:
withRemoteAddressAttributein classServerSettings
-
withRawRequestUriHeader
- Overrides:
withRawRequestUriHeaderin classServerSettings
-
withTransparentHeadRequests
- Overrides:
withTransparentHeadRequestsin classServerSettings
-
withVerboseErrorMessages
- Overrides:
withVerboseErrorMessagesin classServerSettings
-
withResponseHeaderSizeHint
- Overrides:
withResponseHeaderSizeHintin classServerSettings
-
withBacklog
- Overrides:
withBacklogin classServerSettings
-
withSocketOptions
- Overrides:
withSocketOptionsin classServerSettings
-
getWebsocketSettings
- Specified by:
getWebsocketSettingsin classServerSettings
-
withDefaultHttpPort
- Overrides:
withDefaultHttpPortin classServerSettings
-
withDefaultHttpsPort
- Overrides:
withDefaultHttpsPortin classServerSettings
-
withTerminationDeadlineExceededResponse
- Overrides:
withTerminationDeadlineExceededResponsein classServerSettings
-
withParsingErrorHandler
- Overrides:
withParsingErrorHandlerin classServerSettings
-
withStreamCancellationDelay
public ServerSettings withStreamCancellationDelay(scala.concurrent.duration.FiniteDuration newValue) - Overrides:
withStreamCancellationDelayin classServerSettings
-
withEnableHttp2
- Overrides:
withEnableHttp2in classServerSettings- Parameters:
newValue- (undocumented)- Returns:
- (undocumented)
-
withTimeouts
-
withServerHeader
-
withLogUnencryptedNetworkBytes
-
withDefaultHostHeader
-
withParserSettings
-
withWebsocketSettings
-
withSocketOptions
public ServerSettings withSocketOptions(scala.collection.immutable.Seq<org.apache.pekko.io.Inet.SocketOption> newValue) -
withHttp2Settings
-
mapHttp2Settings
-
mapParserSettings
-
mapWebsocketSettings
-
mapTimeouts
public ServerSettings mapTimeouts(scala.Function1<ServerSettings.Timeouts, ServerSettings.Timeouts> f) -
parsingErrorHandlerInstance
public 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)
-