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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable String[]
    Returns the "user-agent" header values which are not applicable for the HTTP content encoding.
    Returns the MIME Types of an HTTP response which are applicable for the HTTP content encoding.
    Returns the minimum bytes for encoding the content of an HTTP response.
    boolean
    Returns true if the HTTP content encoding is enabled.
    void
    setEnabled(boolean enabled)
    Sets whether the HTTP content encoding is enabled.
    void
    setExcludedUserAgents(String[] excludedUserAgents)
    Sets the "user-agent" header values which are not applicable for the HTTP content encoding.
    void
    setMimeTypes(String[] mimeTypes)
    Sets the MIME Types of an HTTP response which are applicable for the HTTP content encoding.
    void
    setMinResponseSize(String minResponseSize)
    Sets the minimum bytes for encoding the content of an HTTP response.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Compression

      public Compression()
  • 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 @Nullable 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.