public class HeaderRangeArray extends Object
Accept-Encoding: compress;q=0.5, gzip;q=1.0
Modifier | Constructor and Description |
---|---|
protected |
HeaderRangeArray(String value)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
List<StringRange> |
asSimpleRanges()
Returns the list of the types ranges that make up this header.
|
int |
findMatch(String[] types)
Given a list of type values, returns the best match for this header.
|
String |
toString() |
protected HeaderRangeArray(String value)
value
- The raw header value.public int findMatch(String[] types)
types
- The types to match against.public List<StringRange> asSimpleRanges()
The types ranges in the list are sorted by their q-value in descending order.
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.