Class SmallRyeAuthGraphQLWSSubprotocolHandler
java.lang.Object
io.smallrye.graphql.websocket.AbstractGraphQLWebsocketHandler
io.smallrye.graphql.websocket.graphqlws.GraphQLWSSubprotocolHandler
io.quarkus.smallrye.graphql.runtime.SmallRyeAuthGraphQLWSSubprotocolHandler
- All Implemented Interfaces:
io.smallrye.graphql.websocket.GraphQLWebsocketHandler
public class SmallRyeAuthGraphQLWSSubprotocolHandler
extends io.smallrye.graphql.websocket.graphqlws.GraphQLWSSubprotocolHandler
An extension over GraphQLWSSubprotocolHandler 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
ConstructorsConstructorDescriptionSmallRyeAuthGraphQLWSSubprotocolHandler(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.graphqlws.GraphQLWSSubprotocolHandler
closeDueToConnectionNotInitialized, getPingMessage, sendErrorMessageMethods inherited from class io.smallrye.graphql.websocket.AbstractGraphQLWebsocketHandler
getContext, onEnd, onMessage, onOperationRequest, onThrowable, sendCancelMessage, sendConnectionAckMessage
-
Constructor Details
-
SmallRyeAuthGraphQLWSSubprotocolHandler
-
-
Method Details
-
onMessage
protected void onMessage(jakarta.json.JsonObject message) - Overrides:
onMessagein classio.smallrye.graphql.websocket.graphqlws.GraphQLWSSubprotocolHandler
-
onClose
public void onClose()- Specified by:
onClosein interfaceio.smallrye.graphql.websocket.GraphQLWebsocketHandler- Overrides:
onClosein classio.smallrye.graphql.websocket.AbstractGraphQLWebsocketHandler
-