Interface CompressedResource


public interface CompressedResource
This is just initial experimental design for solution to already compressed resources problem
Author:
brad
  • Method Details

    • getSupportedEncoding

      String getSupportedEncoding(String acceptableEncodings)
      Return the supported encoding from the list of allowable encodings from the user agent If none are supported return null.
      Parameters:
      acceptableEncodings -
      Returns:
      - null if none of the given encodings are supported, otherwise the content encoding header value to be used
    • sendCompressedContent

      void sendCompressedContent(String contentEncoding, OutputStream out, Range range, Map<String,String> params, String contentType) throws IOException, NotAuthorizedException, BadRequestException, NotFoundException
      Parameters:
      contentEncoding - - the supported encoding returned from getSupportedEncoding
      out -
      range -
      params -
      contentType -
      Throws:
      IOException
      NotAuthorizedException
      BadRequestException
      NotFoundException
    • getCompressedContentLength

      Long getCompressedContentLength(String contentEncoding)
      Return the content length, if known, for the given encoding. Otherwise return null
      Parameters:
      contentEncoding -
      Returns:
      - null, or the length of the content encoded with the given encoding