Class WildFlyGraphQLServerWebSocket
- java.lang.Object
-
- io.smallrye.graphql.entry.http.GraphQLServerWebSocket
-
- org.wildfly.extension.microprofile.graphql.WildFlyGraphQLServerWebSocket
-
public class WildFlyGraphQLServerWebSocket extends io.smallrye.graphql.entry.http.GraphQLServerWebSocketWebSocket endpoint that exposes GraphQL over websockets. Just wrap the original GraphQLServerWebSocket class from SmallRye. The reason we're not using it directly is that I don't know how to make the deployer see the annotations on that class - if we try to use it directly then the undertow deployer will fail. So we extend that class, re-declare its annotations and delegate everything to it.
-
-
Constructor Summary
Constructors Constructor Description WildFlyGraphQLServerWebSocket()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleMessage(javax.websocket.Session session, String message)voidonClose(javax.websocket.Session session)voidonError(javax.websocket.Session session, Throwable throwable)voidonOpen(javax.websocket.Session session)
-
-
-
Method Detail
-
onOpen
public void onOpen(javax.websocket.Session session)
- Overrides:
onOpenin classio.smallrye.graphql.entry.http.GraphQLServerWebSocket
-
onClose
public void onClose(javax.websocket.Session session)
- Overrides:
onClosein classio.smallrye.graphql.entry.http.GraphQLServerWebSocket
-
onError
public void onError(javax.websocket.Session session, Throwable throwable)- Overrides:
onErrorin classio.smallrye.graphql.entry.http.GraphQLServerWebSocket
-
handleMessage
public void handleMessage(javax.websocket.Session session, String message)- Overrides:
handleMessagein classio.smallrye.graphql.entry.http.GraphQLServerWebSocket
-
-