public interface AcceptEncodingHeader extends Parameters, Encoding, Header
If an AcceptEncodingHeader is present, and if the server cannot send a Response which is acceptable according to the AcceptEncodingHeader, then the server should return a Response with a status code of NOT_ACCEPTABLE.
An empty Accept-Encoding header field is permissible, it is equivalent to
Accept-Encoding: identity
, meaning no encoding is permissible.
If no Accept-Encoding header field is present, the server SHOULD assume a default value of identity.
For Example:
Accept-Encoding: gzip
Modifier and Type | Field and Description |
---|---|
static String |
NAME
Name of AcceptEncodingHeader
|
Modifier and Type | Method and Description |
---|---|
float |
getQValue()
Gets q-value of the encoding in this encoding value.
|
void |
setQValue(float qValue)
Sets q-value for the encoding in this encoding value.
|
getParameter, getParameterNames, removeParameter, setParameter
getEncoding, setEncoding
static final String NAME
float getQValue()
-1
indicates theq-value
is not set.void setQValue(float qValue) throws InvalidArgumentException
qValue
- - the new float value of the q-value, a value of -1 resets
the qValue.InvalidArgumentException
- if the q parameter value is not
-1
or between 0 and 1
.Copyright © 2017. All Rights Reserved.