Class GraphQLTransportWSSubprotocolHandler
- java.lang.Object
-
- io.smallrye.graphql.websocket.AbstractGraphQLWebsocketHandler
-
- io.smallrye.graphql.websocket.graphqltransportws.GraphQLTransportWSSubprotocolHandler
-
- All Implemented Interfaces:
GraphQLWebsocketHandler
public class GraphQLTransportWSSubprotocolHandler extends AbstractGraphQLWebsocketHandler
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
Constructors Constructor Description GraphQLTransportWSSubprotocolHandler(GraphQLWebSocketSession session, ExecutionService executionService)
Deprecated.GraphQLTransportWSSubprotocolHandler(GraphQLWebSocketSession session, Map<String,Object> context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
closeDueToConnectionNotInitialized()
protected String
getPingMessage()
protected void
onMessage(jakarta.json.JsonObject message)
protected void
sendErrorMessage(String operationId, ExecutionResponse executionResponse)
-
Methods inherited from class io.smallrye.graphql.websocket.AbstractGraphQLWebsocketHandler
getContext, onClose, onEnd, onMessage, onOperationRequest, onThrowable, sendCancelMessage, sendConnectionAckMessage
-
-
-
-
Constructor Detail
-
GraphQLTransportWSSubprotocolHandler
public GraphQLTransportWSSubprotocolHandler(GraphQLWebSocketSession session, Map<String,Object> context)
-
GraphQLTransportWSSubprotocolHandler
@Deprecated public GraphQLTransportWSSubprotocolHandler(GraphQLWebSocketSession session, ExecutionService executionService)
Deprecated.
-
-
Method Detail
-
onMessage
protected void onMessage(jakarta.json.JsonObject message)
- Specified by:
onMessage
in classAbstractGraphQLWebsocketHandler
-
closeDueToConnectionNotInitialized
protected void closeDueToConnectionNotInitialized()
- Specified by:
closeDueToConnectionNotInitialized
in classAbstractGraphQLWebsocketHandler
-
sendErrorMessage
protected void sendErrorMessage(String operationId, ExecutionResponse executionResponse) throws IOException
- Specified by:
sendErrorMessage
in classAbstractGraphQLWebsocketHandler
- Throws:
IOException
-
getPingMessage
protected String getPingMessage()
- Specified by:
getPingMessage
in classAbstractGraphQLWebsocketHandler
-
-