*/
public static List<AcceptableToken> getAcceptEncoding(HttpRequestContext request) {
final String acceptEncoding = request.getHeaderValue(HttpHeaders.ACCEPT_ENCODING);
try {
if (acceptEncoding == null || acceptEncoding.length() == 0) {
return Collections.singletonList(new AcceptableToken("*"));
}
return HttpHeaderReader.readAcceptToken(acceptEncoding);
} catch (java.text.ParseException e) {
throw clientError("Bad Accept-Encoding header value: '" + acceptEncoding + "'", e);
}