Class Upgrade

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

public class Upgrade extends Object
Represents an HTTP Upgrade protocol value with optional version.
  • Method Details

    • getProtocolName

      public String getProtocolName()
      Returns the protocol name.
      Returns:
      the protocol name
    • getProtocolVersion

      public String getProtocolVersion()
      Returns the protocol version, or null if not specified.
      Returns:
      the protocol version
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • parse

      public static List<Upgrade> parse(Enumeration<String> headerValues)
      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