Class GraphQLWsRequest
java.lang.Object
io.micronaut.configuration.graphql.ws.GraphQLWsRequest
Class to handle the message to and from the websocket.
- Since:
- 1.3
- Author:
- Gerard Klijs
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Types of messages received from the client. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()
Get the id.Get the payload.getType()
Get the type.void
Sets the id.void
setPayload
(GraphQLRequestBody payload) Sets the payload.void
Sets the type.
-
Constructor Details
-
GraphQLWsRequest
public GraphQLWsRequest()
-
-
Method Details
-
getType
Get the type.- Returns:
- the type of message as ClientType
-
setType
Sets the type.- Parameters:
type
- the type as string
-
getId
Get the id.- Returns:
- id as string
-
setId
Sets the id.- Parameters:
id
- the id
-
getPayload
Get the payload.- Returns:
- payload as map, likely to contain a graphql query
-
setPayload
Sets the payload.- Parameters:
payload
- the payload
-