Class ArmeriaSettings.Compression

java.lang.Object
com.linecorp.armeria.spring.ArmeriaSettings.Compression
Enclosing class:
ArmeriaSettings

public static class ArmeriaSettings.Compression
extends Object
Configurations for the HTTP content encoding.
  • Constructor Details

  • Method Details

    • isEnabled

      public boolean isEnabled()
      Returns true if the HTTP content encoding is enabled.
    • setEnabled

      public void setEnabled​(boolean enabled)
      Sets whether the HTTP content encoding is enabled.
    • getMimeTypes

      public String[] getMimeTypes()
      Returns the MIME Types of an HTTP response which are applicable for the HTTP content encoding.
    • setMimeTypes

      public void setMimeTypes​(String[] mimeTypes)
      Sets the MIME Types of an HTTP response which are applicable for the HTTP content encoding.
    • getExcludedUserAgents

      @Nullable public String[] getExcludedUserAgents()
      Returns the "user-agent" header values which are not applicable for the HTTP content encoding.
    • setExcludedUserAgents

      public void setExcludedUserAgents​(String[] excludedUserAgents)
      Sets the "user-agent" header values which are not applicable for the HTTP content encoding.
    • getMinResponseSize

      public String getMinResponseSize()
      Returns the minimum bytes for encoding the content of an HTTP response.
    • setMinResponseSize

      public void setMinResponseSize​(String minResponseSize)
      Sets the minimum bytes for encoding the content of an HTTP response.