Class GraphQLWsRequest
- java.lang.Object
-
- io.micronaut.configuration.graphql.ws.GraphQLWsRequest
-
public class GraphQLWsRequest extends java.lang.ObjectClass to handle the message to and from the websocket.- Since:
- 1.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGraphQLWsRequest.ClientTypeTypes of messages received from the client.
-
Constructor Summary
Constructors Constructor Description GraphQLWsRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetId()Get the id.GraphQLRequestBodygetPayload()Get the payload.GraphQLWsRequest.ClientTypegetType()Get the type.voidsetId(java.lang.String id)Sets the id.voidsetPayload(GraphQLRequestBody payload)Sets the payload.voidsetType(java.lang.String type)Sets the type.
-
-
-
Method Detail
-
getType
public GraphQLWsRequest.ClientType getType()
Get the type.- Returns:
- the type of message as ClientType
-
setType
public void setType(java.lang.String type)
Sets the type.- Parameters:
type- the type as string
-
getId
@Nullable public java.lang.String getId()
Get the id.- Returns:
- id as string
-
setId
public void setId(@Nullable java.lang.String id)Sets the id.- Parameters:
id- the id
-
getPayload
@Nullable public GraphQLRequestBody getPayload()
Get the payload.- Returns:
- payload as map, likely to contain a graphql query
-
setPayload
public void setPayload(@Nullable GraphQLRequestBody payload)Sets the payload.- Parameters:
payload- the payload
-
-