Class Priority
java.lang.Object
org.apache.tomcat.util.http.parser.Priority
HTTP priority header parser as per RFC 9218.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
static Priority
parsePriority
(Reader input) Parsers an HTTP header as a Priority header as defined by RFC 9218.void
setIncremental
(boolean incremental) void
setUrgency
(int urgency)
-
Field Details
-
DEFAULT_URGENCY
public static final int DEFAULT_URGENCY- See Also:
-
DEFAULT_INCREMENTAL
public static final boolean DEFAULT_INCREMENTAL- See Also:
-
-
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
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
-