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 Details

  • Constructor Details

    • WebSocketCompressionConfiguration

      public WebSocketCompressionConfiguration()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Whether deflate compression is enabled for client WebSocket connections.
      Specified by:
      isEnabled in interface Toggleable
      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.