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
ConstructorsConstructorDescriptionSmallRyeAuthGraphQLTransportWSSubprotocolHandler(io.smallrye.graphql.websocket.GraphQLWebSocketSession session, Map<String, Object> context, io.vertx.ext.web.RoutingContext ctx, SmallRyeGraphQLAbstractHandler handler, Optional<String> authorizationClientInitPayloadName) -
Method Summary
Methods inherited from class io.smallrye.graphql.websocket.graphqltransportws.GraphQLTransportWSSubprotocolHandler
closeDueToConnectionNotInitialized, getPingMessage, sendErrorMessageMethods inherited from class io.smallrye.graphql.websocket.AbstractGraphQLWebsocketHandler
getContext, onEnd, onMessage, onOperationRequest, onThrowable, sendCancelMessage, sendConnectionAckMessage
-
Constructor Details
-
SmallRyeAuthGraphQLTransportWSSubprotocolHandler
-
-
Method Details
-
onMessage
protected void onMessage(jakarta.json.JsonObject message) - Overrides:
onMessagein classio.smallrye.graphql.websocket.graphqltransportws.GraphQLTransportWSSubprotocolHandler
-
onClose
public void onClose()- Specified by:
onClosein interfaceio.smallrye.graphql.websocket.GraphQLWebsocketHandler- Overrides:
onClosein classio.smallrye.graphql.websocket.AbstractGraphQLWebsocketHandler
-