Class GraphQLApolloWsRequest
java.lang.Object
io.micronaut.configuration.graphql.ws.apollo.GraphQLApolloWsRequest
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
Modifier and TypeClassDescriptionstatic enum
Deprecated.Types of messages received from the client. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable String
getId()
Deprecated.Get the id.@Nullable GraphQLRequestBody
Deprecated.Get the payload.getType()
Deprecated.Get the type.void
Deprecated.Sets the id.void
setPayload
(@Nullable GraphQLRequestBody payload) Deprecated.Sets the payload.void
Deprecated.Sets the type.
-
Constructor Details
-
GraphQLApolloWsRequest
public GraphQLApolloWsRequest()Deprecated.
-
-
Method Details
-
getType
Deprecated.Get the type.- Returns:
- the type of message as ClientType
-
setType
Deprecated.Sets the type.- Parameters:
type
- the type as string
-
getId
Deprecated.Get the id.- Returns:
- id as string
-
setId
Deprecated.Sets the id.- Parameters:
id
- the id
-
getPayload
Deprecated.Get the payload.- Returns:
- payload as map, likely to contain a graphql query
-
setPayload
Deprecated.Sets the payload.- Parameters:
payload
- the payload
-