org.apache.tapestry5.services.assets

## Interface CompressionAnalyzer

- All Known Implementing Classes:
    CompressionAnalyzerImpl

      @UsesMappedConfiguration(value=boolean.class)
      public interface CompressionAnalyzer

  Identifies which content types are compressable. In general, content types are assumed to be compressable. The configuration of the service identifies exceptions, which are usually image file formats. The configuration maps content types to boolean values (true for compressable). Since 5.4, the contributed values may also be a wild-card such as "image/*" (that is, the subtype may be a '*' to match any content type with the same top-level type).
  Since:
    5.3

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `isCompressable(String contentType)` For a given MIME type, is the content compressable via GZip?

- - ### Method Detail

    - #### isCompressable

          boolean isCompressable(String contentType)

      For a given MIME type, is the content compressable via GZip?
      Parameters:
        `contentType` - MIME content type, possibly included attributes such as encoding type
      Returns:
        true if the content is not "naturally" compressed

5.6.0 - Copyright © 2003-2020 The Apache Software Foundation.