Class GraphQLWSSubprotocolHandler
- java.lang.Object
-
- io.smallrye.graphql.websocket.AbstractGraphQLWebsocketHandler
-
- io.smallrye.graphql.websocket.graphqlws.GraphQLWSSubprotocolHandler
-
- All Implemented Interfaces:
GraphQLWebsocketHandler
public class GraphQLWSSubprotocolHandler extends AbstractGraphQLWebsocketHandler
Websocket subprotocol handler that implements the `graphql-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 GraphQLWSSubprotocolHandler(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(javax.json.JsonObject message)
protected void
sendErrorMessage(String operationId, ExecutionResponse executionResponse)
-
Methods inherited from class io.smallrye.graphql.websocket.AbstractGraphQLWebsocketHandler
onClose, onEnd, onMessage, onThrowable, sendCancelMessage, sendConnectionAckMessage, sendDataMessage
-
-
-
-
Constructor Detail
-
GraphQLWSSubprotocolHandler
public GraphQLWSSubprotocolHandler(GraphQLWebSocketSession session, Map<String,Object> context)
-
-
Method Detail
-
onMessage
protected void onMessage(javax.json.JsonObject message)
- Specified by:
onMessage
in classAbstractGraphQLWebsocketHandler
-
closeDueToConnectionNotInitialized
protected void closeDueToConnectionNotInitialized()
- Specified by:
closeDueToConnectionNotInitialized
in classAbstractGraphQLWebsocketHandler
-
getPingMessage
protected String getPingMessage()
- Specified by:
getPingMessage
in classAbstractGraphQLWebsocketHandler
-
sendErrorMessage
protected void sendErrorMessage(String operationId, ExecutionResponse executionResponse) throws IOException
- Specified by:
sendErrorMessage
in classAbstractGraphQLWebsocketHandler
- Throws:
IOException
-
-