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 aUpgradeToken
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontextBind
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thehttpUpgradeHandler
record component.Returns the value of theinstanceManager
record component.protocol()
Returns the value of theprotocol
record component.final String
toString()
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 aUpgradeToken
record class.- Parameters:
httpUpgradeHandler
- the value for thehttpUpgradeHandler
record componentcontextBind
- the value for thecontextBind
record componentinstanceManager
- the value for theinstanceManager
record componentprotocol
- the value for theprotocol
record 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 thehttpUpgradeHandler
record component.- Returns:
- the value of the
httpUpgradeHandler
record component
-
contextBind
Returns the value of thecontextBind
record component.- Returns:
- the value of the
contextBind
record component
-
instanceManager
Returns the value of theinstanceManager
record component.- Returns:
- the value of the
instanceManager
record component
-
protocol
-