Package io.undertow.util
Class QValueParser
java.lang.Object
io.undertow.util.QValueParser
Utility class for parsing headers that accept q values
- Author:
- Stuart Douglas
-
Nested Class Summary
Nested Classes -
Method Summary
-
Method Details
-
parse
Parses a set of headers that take q values to determine the most preferred one. It returns the result in the form of a sorted list of list, with every element in the list having the same q value. This means the highest priority items are at the front of the list. The container should use its own internal preferred ordering to determinately pick the correct item to use- Parameters:
headers
- The headers- Returns:
- The q value results
-