Class GraphQLApolloWsResponse

java.lang.Object
io.micronaut.configuration.graphql.ws.apollo.GraphQLApolloWsResponse

@Deprecated(since="4.0") public class GraphQLApolloWsResponse extends Object
Deprecated.
The Apollo subscriptions-transport-ws protocol is deprecated and its usage should be replaced with the new graphql-ws implementation.
Class to handle the message to and from the websocket.
Since:
1.3
Author:
Gerard Klijs
  • Constructor Details

    • GraphQLApolloWsResponse

      public GraphQLApolloWsResponse(String serverType, @Nullable @Nullable String id, @Nullable @Nullable GraphQLResponseBody payload)
      Deprecated.
      Constructor having all the types, like a graphql query response.
      Parameters:
      serverType - serverType as string
      id - id as string
      payload - payload as string
    • GraphQLApolloWsResponse

      public GraphQLApolloWsResponse(GraphQLApolloWsResponse.ServerType serverType)
      Deprecated.
      Constructor for messages with just the type, like errors.
      Parameters:
      serverType - type as serverType
    • GraphQLApolloWsResponse

      public GraphQLApolloWsResponse(GraphQLApolloWsResponse.ServerType serverType, @Nullable @Nullable String id)
      Deprecated.
      Constructor for messages with only serverType and id, like the stop message.
      Parameters:
      serverType - serverType as serverType
      id - id as string
    • GraphQLApolloWsResponse

      public GraphQLApolloWsResponse(GraphQLApolloWsResponse.ServerType serverType, @Nullable @Nullable String id, @Nullable @Nullable GraphQLResponseBody payload)
      Deprecated.
      Constructor having all the types, like a graphql query response.
      Parameters:
      serverType - serverType as string
      id - id as string
      payload - payload as string
  • Method Details

    • getType

      public String getType()
      Deprecated.
      Get the type.
      Returns:
      the type of message as string
    • getId

      @Nullable public @Nullable String getId()
      Deprecated.
      Get the id.
      Returns:
      id as string
    • getPayload

      @Nullable public @Nullable GraphQLResponseBody getPayload()
      Deprecated.
      Get the payload.
      Returns:
      result of the query