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

    Constructors
    Constructor
    Description
    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 a HttpUpgradeContextImpl record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the endpointId record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    io.vertx.core.http.HttpServerRequest
     
    Gets the value of a single path parameter
    io.vertx.ext.web.RoutingContext
    Returns the value of the routingContext record component.
    io.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity>
    Returns the value of the securityIdentity record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the userData record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a HttpUpgradeContextImpl record class.
      Parameters:
      routingContext - the value for the routingContext record component
      userData - the value for the userData record component
      securityIdentity - the value for the securityIdentity record component
      endpointId - the value for the endpointId record component
  • Method Details

    • pathParam

      public String pathParam(String name)
      Description copied from interface: HttpUpgradeCheck.HttpUpgradeContext
      Gets the value of a single path parameter
      Specified by:
      pathParam in interface HttpUpgradeCheck.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:
      • RoutingContext.pathParam(String)
    • httpRequest

      public io.vertx.core.http.HttpServerRequest httpRequest()
      Specified by:
      httpRequest in interface HttpUpgradeCheck.HttpUpgradeContext
      Returns:
      httpRequest HttpServerRequest; the HTTP 1.X request employing the 'Upgrade' header
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • routingContext

      public io.vertx.ext.web.RoutingContext routingContext()
      Returns the value of the routingContext record component.
      Returns:
      the value of the routingContext record component
    • userData

      public UserData userData()
      Returns the value of the userData record component.
      Specified by:
      userData in interface HttpUpgradeCheck.HttpUpgradeContext
      Returns:
      the value of the userData record component
      See Also:
    • securityIdentity

      public io.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity> securityIdentity()
      Returns the value of the securityIdentity record component.
      Specified by:
      securityIdentity in interface HttpUpgradeCheck.HttpUpgradeContext
      Returns:
      the value of the securityIdentity record component
    • endpointId

      public String endpointId()
      Returns the value of the endpointId record component.
      Specified by:
      endpointId in interface HttpUpgradeCheck.HttpUpgradeContext
      Returns:
      the value of the endpointId record component