Record Class HttpUpgradeContextImpl
java.lang.Object
java.lang.Record
io.quarkus.websockets.next.runtime.HttpUpgradeContextImpl
- All Implemented Interfaces:
HttpUpgradeCheck.HttpUpgradeContext
record HttpUpgradeContextImpl(io.vertx.ext.web.RoutingContext routingContext, UserData userData, io.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity> securityIdentity, String endpointId)
extends Record
implements HttpUpgradeCheck.HttpUpgradeContext
-
Constructor Summary
ConstructorsConstructorDescriptionHttpUpgradeContextImpl(io.vertx.ext.web.RoutingContext routingContext, UserData userData, io.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity> securityIdentity, String endpointId) Creates an instance of aHttpUpgradeContextImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theendpointIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.io.vertx.core.http.HttpServerRequestGets the value of a single path parameterio.vertx.ext.web.RoutingContextReturns the value of theroutingContextrecord component.io.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity> Returns the value of thesecurityIdentityrecord component.final StringtoString()Returns a string representation of this record class.userData()Returns the value of theuserDatarecord component.
-
Constructor Details
-
HttpUpgradeContextImpl
HttpUpgradeContextImpl(io.vertx.ext.web.RoutingContext routingContext, UserData userData, io.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity> securityIdentity, String endpointId) Creates an instance of aHttpUpgradeContextImplrecord class.- Parameters:
routingContext- the value for theroutingContextrecord componentuserData- the value for theuserDatarecord componentsecurityIdentity- the value for thesecurityIdentityrecord componentendpointId- the value for theendpointIdrecord component
-
-
Method Details
-
pathParam
Description copied from interface:HttpUpgradeCheck.HttpUpgradeContextGets the value of a single path parameter- Specified by:
pathParamin interfaceHttpUpgradeCheck.HttpUpgradeContext- Parameters:
name- the name of parameter as defined in path declaration- Returns:
- the actual value of the parameter or null if it doesn't exist
- See Also:
-
httpRequest
public io.vertx.core.http.HttpServerRequest httpRequest()- Specified by:
httpRequestin interfaceHttpUpgradeCheck.HttpUpgradeContext- Returns:
- httpRequest
HttpServerRequest; the HTTP 1.X request employing the 'Upgrade' header
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
routingContext
public io.vertx.ext.web.RoutingContext routingContext()Returns the value of theroutingContextrecord component.- Returns:
- the value of the
routingContextrecord component
-
userData
Returns the value of theuserDatarecord component.- Specified by:
userDatain interfaceHttpUpgradeCheck.HttpUpgradeContext- Returns:
- the value of the
userDatarecord component - See Also:
-
securityIdentity
public io.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity> securityIdentity()Returns the value of thesecurityIdentityrecord component.- Specified by:
securityIdentityin interfaceHttpUpgradeCheck.HttpUpgradeContext- Returns:
- the value of the
securityIdentityrecord component
-
endpointId
Returns the value of theendpointIdrecord component.- Specified by:
endpointIdin interfaceHttpUpgradeCheck.HttpUpgradeContext- Returns:
- the value of the
endpointIdrecord component
-