UpgradeToken (Apache Tomcat 9.0.120 API Documentation)
Description: declaration: package: org.apache.coyote, class: UpgradeToken

# Class UpgradeToken

java.lang.Object
org.apache.coyote.UpgradeToken

public final class UpgradeToken extends Object
Token used during the upgrade process.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `UpgradeToken(HttpUpgradeHandler httpUpgradeHandler, ContextBind contextBind, InstanceManager instanceManager, String protocol)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ContextBind`
  `getContextBind()`
  Returns the context binder for this upgrade.
  `HttpUpgradeHandler`
  `getHttpUpgradeHandler()`
  Returns the HTTP upgrade handler.
  `InstanceManager`
  `getInstanceManager()`
  Returns the instance manager for creating servlets and filters.
  `String`
  `getProtocol()`
  Returns the protocol name for the upgrade.

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### UpgradeToken

    public UpgradeToken(HttpUpgradeHandler httpUpgradeHandler, ContextBind contextBind, InstanceManager instanceManager, String protocol)

- ## Method Details

  - ### getContextBind

    public ContextBind getContextBind()
    Returns the context binder for this upgrade.
    Returns:
      the context binder

  - ### getHttpUpgradeHandler

    public HttpUpgradeHandler getHttpUpgradeHandler()
    Returns the HTTP upgrade handler.
    Returns:
      the upgrade handler

  - ### getInstanceManager

    public InstanceManager getInstanceManager()
    Returns the instance manager for creating servlets and filters.
    Returns:
      the instance manager

  - ### getProtocol

    public String getProtocol()
    Returns the protocol name for the upgrade.
    Returns:
      the protocol name