Class Upgrade
java.lang.Object
org.apache.tomcat.util.http.parser.Upgrade
Represents an HTTP Upgrade protocol value with optional version.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the protocol name.Returns the protocol version, or null if not specified.parse(Enumeration<String> headerValues) Parses Upgrade header values into a list of Upgrade instances.toString()
-
Method Details
-
getProtocolName
-
getProtocolVersion
Returns the protocol version, or null if not specified.- Returns:
- the protocol version
-
toString
-
parse
Parses Upgrade header values into a list of Upgrade instances.- Parameters:
headerValues- the enumeration of header values- Returns:
- the list of parsed upgrades, or null if parsing fails
-