# 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 Summary

Modifier and Type
Method
Description
`String`
`getProtocolName()`
Returns the protocol name.
`String`
`getProtocolVersion()`
Returns the protocol version, or null if not specified.
`static List<Upgrade>`
`parse(Enumeration<String> headerValues)`
Parses Upgrade header values into a list of Upgrade instances.
`String`
`toString()`

### Methods inherited from class Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

## 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