Class GraphQLApolloWsResponse
java.lang.Object
io.micronaut.configuration.graphql.ws.apollo.GraphQLApolloWsResponse
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
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeprecated.Types of messages send to the client. - 
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Constructor for messages with just the type, like errors.GraphQLApolloWsResponse(GraphQLApolloWsResponse.ServerType serverType, @Nullable String id) Deprecated.Constructor for messages with only serverType and id, like the stop message.GraphQLApolloWsResponse(GraphQLApolloWsResponse.ServerType serverType, @Nullable String id, @Nullable GraphQLResponseBody payload) Deprecated.Constructor having all the types, like a graphql query response.GraphQLApolloWsResponse(String serverType, @Nullable String id, @Nullable GraphQLResponseBody payload) Deprecated.Constructor having all the types, like a graphql query response. - 
Method Summary
Modifier and TypeMethodDescription@Nullable StringgetId()Deprecated.Get the id.@Nullable GraphQLResponseBodyDeprecated.Get the payload.getType()Deprecated.Get the type. 
- 
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 stringid- id as stringpayload- payload as string
 - 
GraphQLApolloWsResponse
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 serverTypeid- 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 stringid- id as stringpayload- payload as string
 
 - 
 - 
Method Details
- 
getType
Deprecated.Get the type.- Returns:
 - the type of message as string
 
 - 
getId
Deprecated.Get the id.- Returns:
 - id as string
 
 - 
getPayload
Deprecated.Get the payload.- Returns:
 - result of the query
 
 
 -