Class SmallRyeAuthGraphQLTransportWSSubprotocolHandler

java.lang.Object
io.smallrye.graphql.websocket.AbstractGraphQLWebsocketHandler
io.smallrye.graphql.websocket.graphqltransportws.GraphQLTransportWSSubprotocolHandler
io.quarkus.smallrye.graphql.runtime.SmallRyeAuthGraphQLTransportWSSubprotocolHandler
All Implemented Interfaces:
io.smallrye.graphql.websocket.GraphQLWebsocketHandler

public class SmallRyeAuthGraphQLTransportWSSubprotocolHandler extends io.smallrye.graphql.websocket.graphqltransportws.GraphQLTransportWSSubprotocolHandler
An extension over GraphQLTransportWSSubprotocolHandler which supports defining an Authorization header in the client init message. This key of the Authorization header is defined by the `authorizationClientInitPayloadName` property.
  • Field Summary

    Fields inherited from class io.smallrye.graphql.websocket.AbstractGraphQLWebsocketHandler

    activeOperations, connectionAckMessage, connectionInitialized, executionService, keepAliveSender, LOG, session
  • Constructor Summary

    Constructors
    Constructor
    Description
    SmallRyeAuthGraphQLTransportWSSubprotocolHandler(io.smallrye.graphql.websocket.GraphQLWebSocketSession session, Map<String,Object> context, io.vertx.ext.web.RoutingContext ctx, SmallRyeGraphQLAbstractHandler handler, Optional<String> authorizationClientInitPayloadName)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected void
    onMessage(jakarta.json.JsonObject message)
     

    Methods inherited from class io.smallrye.graphql.websocket.graphqltransportws.GraphQLTransportWSSubprotocolHandler

    closeDueToConnectionNotInitialized, getPingMessage, sendErrorMessage

    Methods inherited from class io.smallrye.graphql.websocket.AbstractGraphQLWebsocketHandler

    getContext, onEnd, onMessage, onOperationRequest, onThrowable, sendCancelMessage, sendConnectionAckMessage

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SmallRyeAuthGraphQLTransportWSSubprotocolHandler

      public SmallRyeAuthGraphQLTransportWSSubprotocolHandler(io.smallrye.graphql.websocket.GraphQLWebSocketSession session, Map<String,Object> context, io.vertx.ext.web.RoutingContext ctx, SmallRyeGraphQLAbstractHandler handler, Optional<String> authorizationClientInitPayloadName)
  • Method Details

    • onMessage

      protected void onMessage(jakarta.json.JsonObject message)
      Overrides:
      onMessage in class io.smallrye.graphql.websocket.graphqltransportws.GraphQLTransportWSSubprotocolHandler
    • onClose

      public void onClose()
      Specified by:
      onClose in interface io.smallrye.graphql.websocket.GraphQLWebsocketHandler
      Overrides:
      onClose in class io.smallrye.graphql.websocket.AbstractGraphQLWebsocketHandler