Class GraphQLTransportWSSubprotocolHandler
java.lang.Object
io.smallrye.graphql.websocket.AbstractGraphQLWebsocketHandler
io.smallrye.graphql.websocket.graphqltransportws.GraphQLTransportWSSubprotocolHandler
- All Implemented Interfaces:
GraphQLWebsocketHandler
Websocket subprotocol handler that implements the `graphql-transport-ws` subprotocol.
-
Field Summary
Fields inherited from class io.smallrye.graphql.websocket.AbstractGraphQLWebsocketHandler
activeOperations, connectionAckMessage, connectionInitialized, executionService, keepAliveSender, LOG, session -
Constructor Summary
ConstructorsConstructorDescriptionGraphQLTransportWSSubprotocolHandler(GraphQLWebSocketSession session, ExecutionService executionService) Deprecated.GraphQLTransportWSSubprotocolHandler(GraphQLWebSocketSession session, Map<String, Object> context) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected Stringprotected voidonMessage(jakarta.json.JsonObject message) protected voidsendErrorMessage(String operationId, ExecutionResponse executionResponse) Methods inherited from class io.smallrye.graphql.websocket.AbstractGraphQLWebsocketHandler
getContext, onClose, onEnd, onMessage, onOperationRequest, onThrowable, sendCancelMessage, sendConnectionAckMessage
-
Constructor Details
-
GraphQLTransportWSSubprotocolHandler
public GraphQLTransportWSSubprotocolHandler(GraphQLWebSocketSession session, Map<String, Object> context) -
GraphQLTransportWSSubprotocolHandler
@Deprecated public GraphQLTransportWSSubprotocolHandler(GraphQLWebSocketSession session, ExecutionService executionService) Deprecated.
-
-
Method Details
-
onMessage
protected void onMessage(jakarta.json.JsonObject message) - Specified by:
onMessagein classAbstractGraphQLWebsocketHandler
-
closeDueToConnectionNotInitialized
protected void closeDueToConnectionNotInitialized()- Specified by:
closeDueToConnectionNotInitializedin classAbstractGraphQLWebsocketHandler
-
sendErrorMessage
protected void sendErrorMessage(String operationId, ExecutionResponse executionResponse) throws IOException - Specified by:
sendErrorMessagein classAbstractGraphQLWebsocketHandler- Throws:
IOException
-
getPingMessage
- Specified by:
getPingMessagein classAbstractGraphQLWebsocketHandler
-