@NotThreadSafe public class AcceptEncodingList extends AbstractQValueList<String>
m_aMap| Constructor and Description |
|---|
AcceptEncodingList() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEncoding(String sEncoding,
double dQuality) |
boolean |
explicitlySupportsEncoding(String sEncoding) |
double |
getQualityOfEncoding(String sEncoding)
Return the associated quality of the given encoding.
|
QValue |
getQValueOfEncoding(String sEncoding)
Return the associated quality of the given encoding.
|
String |
getUsedCompressEncoding() |
String |
getUsedDeflateEncoding() |
String |
getUsedGZIPEncoding() |
boolean |
supportsCompress() |
boolean |
supportsDeflate() |
boolean |
supportsEncoding(String sEncoding)
Check if the passed encoding is supported.
|
boolean |
supportsGZIP() |
getAllQValues, getAllQValuesGreaterOrEqual, getAllQValuesGreaterThan, getAllQValuesLowerOrEqual, getAllQValuesLowerThan, toStringpublic void addEncoding(@Nonnull String sEncoding, @Nonnegative double dQuality)
@Nonnull public QValue getQValueOfEncoding(@Nonnull String sEncoding)
sEncoding - The encoding name to query. May not be null.QValue and never null.public double getQualityOfEncoding(@Nonnull String sEncoding)
sEncoding - The encoding name to query. May not be null.public boolean supportsEncoding(@Nonnull String sEncoding)
sEncoding - The encoding to be checked. May not be null.true if the encoding is supported, false
if not.public boolean supportsGZIP()
@Nullable public String getUsedGZIPEncoding()
AcceptEncodingHandler.GZIP_ENCODING or
AcceptEncodingHandler.X_GZIP_ENCODING or nullpublic boolean supportsDeflate()
@Nullable public String getUsedDeflateEncoding()
AcceptEncodingHandler.DEFLATE_ENCODING or nullpublic boolean supportsCompress()
@Nullable public String getUsedCompressEncoding()
AcceptEncodingHandler.COMPRESS_ENCODING or
AcceptEncodingHandler.X_COMPRESS_ENCODING or
nullCopyright © 2016–2019 Philip Helger. All rights reserved.