Package akka.http.javadsl.settings
Class ServerSettings
java.lang.Object
akka.http.javadsl.settings.ServerSettings
- Direct Known Subclasses:
ServerSettings
Public API but not intended for subclassing
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ServerSettings
create
(akka.actor.ActorSystem system) static ServerSettings
create
(com.typesafe.config.Config config) static ServerSettings
abstract int
abstract Host
abstract int
abstract int
abstract int
abstract ParserSettings
abstract String
abstract int
abstract PreviewServerSettings
abstract boolean
abstract boolean
abstract boolean
Deprecated.since 10.2.0, use remoteAddressAttribute insteadabstract int
abstract Iterable<akka.io.Inet.SocketOption>
abstract scala.concurrent.duration.FiniteDuration
abstract HttpResponse
abstract ServerSettings.Timeouts
abstract boolean
abstract boolean
Deprecated.Kept for binary compatibility; Use websocketSettings.getRandomFactory instead.abstract WebSocketSettings
abstract boolean
withBacklog
(int newValue) withDefaultHostHeader
(Host newValue) withDefaultHttpPort
(int newValue) withDefaultHttpsPort
(int newValue) withHttp2Enabled
(boolean enabled) 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) withRemoteAddressHeader
(boolean newValue) withResponseHeaderSizeHint
(int newValue) withServerHeader
(Optional<Server> newValue) withSocketOptions
(Iterable<akka.io.Inet.SocketOption> newValue) withStreamCancellationDelay
(scala.concurrent.duration.FiniteDuration newValue) withTimeouts
(ServerSettings.Timeouts newValue) withTransparentHeadRequests
(boolean newValue) withVerboseErrorMessages
(boolean newValue) withWebsocketRandomFactory
(Supplier<Random> newValue) Deprecated.Kept for binary compatibility; Use websocketSettings.withRandomFactoryFactory instead.withWebsocketSettings
(WebSocketSettings newValue)
-
Constructor Details
-
ServerSettings
public ServerSettings()
-
-
Method Details
-
create
-
create
-
create
-
getServerHeader
-
getPreviewServerSettings
-
getTimeouts
-
getMaxConnections
public abstract int getMaxConnections() -
getPipeliningLimit
public abstract int getPipeliningLimit() -
getRemoteAddressHeader
public abstract boolean getRemoteAddressHeader()Deprecated.since 10.2.0, use remoteAddressAttribute instead- Returns:
- (undocumented)
-
getRemoteAddressAttribute
public abstract boolean getRemoteAddressAttribute() -
getRawRequestUriHeader
public abstract boolean getRawRequestUriHeader() -
getTransparentHeadRequests
public abstract boolean getTransparentHeadRequests() -
getVerboseErrorMessages
public abstract boolean getVerboseErrorMessages() -
getResponseHeaderSizeHint
public abstract int getResponseHeaderSizeHint() -
getBacklog
public abstract int getBacklog() -
getSocketOptions
-
getDefaultHostHeader
-
getWebsocketRandomFactory
Deprecated.Kept for binary compatibility; Use websocketSettings.getRandomFactory instead. Since 10.2.0. -
getWebsocketSettings
-
getParserSettings
-
getLogUnencryptedNetworkBytes
-
getHttp2Settings
-
getDefaultHttpPort
public abstract int getDefaultHttpPort() -
getDefaultHttpsPort
public abstract int getDefaultHttpsPort() -
getTerminationDeadlineExceededResponse
-
getParsingErrorHandler
-
getStreamCancellationDelay
public abstract scala.concurrent.duration.FiniteDuration getStreamCancellationDelay() -
http2Enabled
public abstract boolean http2Enabled() -
withServerHeader
-
withPreviewServerSettings
-
withTimeouts
-
withMaxConnections
-
withPipeliningLimit
-
withRemoteAddressHeader
-
withRemoteAddressAttribute
-
withRawRequestUriHeader
-
withTransparentHeadRequests
-
withVerboseErrorMessages
-
withResponseHeaderSizeHint
-
withBacklog
-
withSocketOptions
-
withDefaultHostHeader
-
withParserSettings
-
withWebsocketRandomFactory
Deprecated.Kept for binary compatibility; Use websocketSettings.withRandomFactoryFactory instead. Since 10.2.0. -
withWebsocketSettings
-
withLogUnencryptedNetworkBytes
-
withHttp2Settings
-
withDefaultHttpPort
-
withDefaultHttpsPort
-
withTerminationDeadlineExceededResponse
-
withParsingErrorHandler
-
withStreamCancellationDelay
public ServerSettings withStreamCancellationDelay(scala.concurrent.duration.FiniteDuration newValue) -
withHttp2Enabled
-