Package io.micronaut.http.client
Class HttpClientConfiguration.WebSocketCompressionConfiguration
java.lang.Object
io.micronaut.http.client.HttpClientConfiguration.WebSocketCompressionConfiguration
- All Implemented Interfaces:
Toggleable
- Direct Known Subclasses:
DefaultHttpClientConfiguration.DefaultWebSocketCompressionConfiguration
,ServiceHttpClientConfiguration.ServiceWebSocketCompressionConfiguration
- Enclosing class:
- HttpClientConfiguration
public static class HttpClientConfiguration.WebSocketCompressionConfiguration
extends Object
implements Toggleable
Configuration for WebSocket client compression extensions.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
The default enable value.static final String
The prefix to use for configuration. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether deflate compression is enabled for client WebSocket connections.void
setEnabled
(boolean enabled) Sets whether the per message deflate extension is enabled for WebSocket connections.
-
Field Details
-
PREFIX
The prefix to use for configuration.- See Also:
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
-
-
Constructor Details
-
WebSocketCompressionConfiguration
public WebSocketCompressionConfiguration()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Whether deflate compression is enabled for client WebSocket connections.- Specified by:
isEnabled
in interfaceToggleable
- Returns:
- True if the per message deflate extension is enabled.
-
setEnabled
public void setEnabled(boolean enabled) Sets whether the per message deflate extension is enabled for WebSocket connections. Default value (DEFAULT_ENABLED
).- Parameters:
enabled
- True is it is enabled.
-