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 class
static interface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerSettings
apply
(com.typesafe.config.Config config) static ServerSettings
abstract int
backlog()
abstract Host
abstract int
abstract int
int
int
int
int
int
boolean
boolean
int
List<org.apache.pekko.io.Inet.SocketOption>
scala.concurrent.duration.FiniteDuration
boolean
boolean
abstract Http2ServerSettings
abstract scala.Option<Object>
mapHttp2Settings
(scala.Function1<Http2ServerSettings, Http2ServerSettings> f) mapParserSettings
(scala.Function1<ParserSettings, ParserSettings> f) mapPreviewServerSettings
(scala.Function1<PreviewServerSettings, PreviewServerSettings> f) mapTimeouts
(scala.Function1<ServerSettings.Timeouts, ServerSettings.Timeouts> f) mapWebsocketSettings
(scala.Function1<WebSocketSettings, WebSocketSettings> f) abstract int
abstract ParserSettings
abstract String
abstract ParsingErrorHandler
parsingErrorHandlerInstance
(org.apache.pekko.actor.ActorSystem system) INTERNAL APIabstract int
abstract PreviewServerSettings
abstract boolean
abstract boolean
abstract int
abstract scala.Option<Server>
abstract scala.collection.immutable.Seq<org.apache.pekko.io.Inet.SocketOption>
abstract scala.concurrent.duration.FiniteDuration
abstract HttpResponse
abstract ServerSettings.Timeouts
timeouts()
static ServerSettings.Timeouts
abstract boolean
abstract boolean
abstract WebSocketSettings
withBacklog
(int newValue) withDefaultHostHeader
(Host newValue) withDefaultHttpPort
(int newValue) withDefaultHttpsPort
(int 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, withPreviewServerSettings, withServerHeader, withTimeouts, withWebsocketSettings
-
Constructor Details
-
ServerSettings
public ServerSettings()
-
-
Method Details
-
timeoutsShortcut
-
apply
-
apply
-
serverHeader
-
previewServerSettings
-
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() -
getBacklog
public int getBacklog()- Specified by:
getBacklog
in classServerSettings
-
getPreviewServerSettings
- Specified by:
getPreviewServerSettings
in classServerSettings
-
getDefaultHostHeader
- Specified by:
getDefaultHostHeader
in classServerSettings
-
getPipeliningLimit
public int getPipeliningLimit()- Specified by:
getPipeliningLimit
in classServerSettings
-
getParserSettings
- Specified by:
getParserSettings
in classServerSettings
-
getMaxConnections
public int getMaxConnections()- Specified by:
getMaxConnections
in classServerSettings
-
getTransparentHeadRequests
public boolean getTransparentHeadRequests()- Specified by:
getTransparentHeadRequests
in classServerSettings
-
getResponseHeaderSizeHint
public int getResponseHeaderSizeHint()- Specified by:
getResponseHeaderSizeHint
in classServerSettings
-
getVerboseErrorMessages
public boolean getVerboseErrorMessages()- Specified by:
getVerboseErrorMessages
in classServerSettings
-
getSocketOptions
- Specified by:
getSocketOptions
in classServerSettings
-
getServerHeader
- Specified by:
getServerHeader
in classServerSettings
-
getTimeouts
- Specified by:
getTimeouts
in classServerSettings
-
getRawRequestUriHeader
public boolean getRawRequestUriHeader()- Specified by:
getRawRequestUriHeader
in classServerSettings
-
getRemoteAddressAttribute
public boolean getRemoteAddressAttribute()- Specified by:
getRemoteAddressAttribute
in classServerSettings
-
getLogUnencryptedNetworkBytes
- Specified by:
getLogUnencryptedNetworkBytes
in classServerSettings
-
getDefaultHttpPort
public int getDefaultHttpPort()- Specified by:
getDefaultHttpPort
in classServerSettings
-
getDefaultHttpsPort
public int getDefaultHttpsPort()- Specified by:
getDefaultHttpsPort
in classServerSettings
-
getTerminationDeadlineExceededResponse
- Specified by:
getTerminationDeadlineExceededResponse
in classServerSettings
-
getParsingErrorHandler
- Specified by:
getParsingErrorHandler
in classServerSettings
-
getStreamCancellationDelay
public scala.concurrent.duration.FiniteDuration getStreamCancellationDelay()- Specified by:
getStreamCancellationDelay
in classServerSettings
-
withPreviewServerSettings
-
withMaxConnections
- Overrides:
withMaxConnections
in classServerSettings
-
withPipeliningLimit
- Overrides:
withPipeliningLimit
in classServerSettings
-
withRemoteAddressAttribute
- Overrides:
withRemoteAddressAttribute
in classServerSettings
-
withRawRequestUriHeader
- Overrides:
withRawRequestUriHeader
in classServerSettings
-
withTransparentHeadRequests
- Overrides:
withTransparentHeadRequests
in classServerSettings
-
withVerboseErrorMessages
- Overrides:
withVerboseErrorMessages
in classServerSettings
-
withResponseHeaderSizeHint
- Overrides:
withResponseHeaderSizeHint
in classServerSettings
-
withBacklog
- Overrides:
withBacklog
in classServerSettings
-
withSocketOptions
- Overrides:
withSocketOptions
in classServerSettings
-
getWebsocketSettings
- Specified by:
getWebsocketSettings
in classServerSettings
-
withDefaultHttpPort
- Overrides:
withDefaultHttpPort
in classServerSettings
-
withDefaultHttpsPort
- Overrides:
withDefaultHttpsPort
in classServerSettings
-
withTerminationDeadlineExceededResponse
- Overrides:
withTerminationDeadlineExceededResponse
in classServerSettings
-
withParsingErrorHandler
- Overrides:
withParsingErrorHandler
in classServerSettings
-
withStreamCancellationDelay
public ServerSettings withStreamCancellationDelay(scala.concurrent.duration.FiniteDuration newValue) - Overrides:
withStreamCancellationDelay
in classServerSettings
-
withTimeouts
-
withServerHeader
-
withLogUnencryptedNetworkBytes
-
withDefaultHostHeader
-
withParserSettings
-
withWebsocketSettings
-
withSocketOptions
public ServerSettings withSocketOptions(scala.collection.immutable.Seq<org.apache.pekko.io.Inet.SocketOption> newValue) -
withHttp2Settings
-
mapHttp2Settings
-
mapParserSettings
-
mapPreviewServerSettings
public ServerSettings mapPreviewServerSettings(scala.Function1<PreviewServerSettings, PreviewServerSettings> f) -
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)
-