Class QValueParser

java.lang.Object
io.undertow.util.QValueParser

public class QValueParser extends Object
Utility class for parsing headers that accept q values
Author:
Stuart Douglas
  • Method Details

    • parse

      public static List<List<QValueParser.QValueResult>> parse(List<String> headers)
      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