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