Annotation Type GZIP

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean alreadyCompressed
      Indicate that the payload is already compressed.
      String[] mediaTypes
      If non-empty, only contents compatible with any of the specified media type will be compressed.
    • Element Detail

      • mediaTypes

        String[] mediaTypes
        If non-empty, only contents compatible with any of the specified media type will be compressed.
        See Also:
        MediaType.isCompatible(MediaType)
        Default:
        {}
      • alreadyCompressed

        boolean alreadyCompressed
        Indicate that the payload is already compressed.

        When that is the case, the decorator should only append a Content-Encoding: gzip header, but not alter the entity.

        Default:
        false