Record Class UpgradeToken
java.lang.Object
java.lang.Record
org.apache.coyote.UpgradeToken
- Record Components:
httpUpgradeHandler- The handler for the HTTP upgradecontextBind- The object to use to bind/unbind the current thread to/from the web application class loaderinstanceManager- The instance manager to use to create new Servlets, Filters, Listeners etcprotocol- The desired protocol to upgrade to
public record UpgradeToken(HttpUpgradeHandler httpUpgradeHandler, ContextBind contextBind, InstanceManager instanceManager, String protocol)
extends Record
Token used during the upgrade process.
-
Constructor Summary
ConstructorsConstructorDescriptionUpgradeToken(HttpUpgradeHandler httpUpgradeHandler, ContextBind contextBind, InstanceManager instanceManager, String protocol) Creates an instance of aUpgradeTokenrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontextBindrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehttpUpgradeHandlerrecord component.Returns the value of theinstanceManagerrecord component.protocol()Returns the value of theprotocolrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UpgradeToken
public UpgradeToken(HttpUpgradeHandler httpUpgradeHandler, ContextBind contextBind, InstanceManager instanceManager, String protocol) Creates an instance of aUpgradeTokenrecord class.- Parameters:
httpUpgradeHandler- the value for thehttpUpgradeHandlerrecord componentcontextBind- the value for thecontextBindrecord componentinstanceManager- the value for theinstanceManagerrecord componentprotocol- the value for theprotocolrecord component
-
-
Method Details
-
getContextBind
-
getHttpUpgradeHandler
-
getInstanceManager
-
getProtocol
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
httpUpgradeHandler
Returns the value of thehttpUpgradeHandlerrecord component.- Returns:
- the value of the
httpUpgradeHandlerrecord component
-
contextBind
Returns the value of thecontextBindrecord component.- Returns:
- the value of the
contextBindrecord component
-
instanceManager
Returns the value of theinstanceManagerrecord component.- Returns:
- the value of the
instanceManagerrecord component
-
protocol
-