Class Priority

java.lang.Object
org.apache.tomcat.util.http.parser.Priority

public class Priority extends Object
HTTP priority header parser as per RFC 9218.
  • Field Details

  • Constructor Details

    • Priority

      public Priority()
  • Method Details

    • getUrgency

      public int getUrgency()
    • setUrgency

      public void setUrgency(int urgency)
    • getIncremental

      public boolean getIncremental()
    • setIncremental

      public void setIncremental(boolean incremental)
    • parsePriority

      public static Priority parsePriority(Reader input) throws IOException
      Parsers an HTTP header as a Priority header as defined by RFC 9218.
      Parameters:
      input - The header to parse
      Returns:
      The resulting priority
      Throws:
      IOException - If an I/O error occurs while reading the input