public interface CompressedResource
| Modifier and Type | Method and Description |
|---|---|
Long |
getCompressedContentLength(String contentEncoding)
Return the content length, if known, for the given encoding.
|
String |
getSupportedEncoding(String acceptableEncodings)
Return the supported encoding from the list of allowable encodings from the user agent
If none are supported return null.
|
void |
sendCompressedContent(String contentEncoding,
OutputStream out,
Range range,
Map<String,String> params,
String contentType) |
String getSupportedEncoding(String acceptableEncodings)
acceptableEncodings - void sendCompressedContent(String contentEncoding, OutputStream out, Range range, Map<String,String> params, String contentType) throws IOException, NotAuthorizedException, BadRequestException, NotFoundException
contentEncoding - - the supported encoding returned from getSupportedEncodingout - range - params - contentType - IOExceptionNotAuthorizedExceptionBadRequestExceptionNotFoundExceptionCopyright © 2021 McEvoy Software Ltd. All rights reserved.