Class GraphQLWsRequest

java.lang.Object
io.micronaut.configuration.graphql.ws.GraphQLWsRequest

public class GraphQLWsRequest extends Object
Class to handle the message to and from the websocket.
Since:
1.3
Author:
Gerard Klijs
  • Constructor Details

    • GraphQLWsRequest

      public GraphQLWsRequest()
  • Method Details

    • getType

      public GraphQLWsRequest.ClientType getType()
      Get the type.
      Returns:
      the type of message as ClientType
    • setType

      public void setType(String type)
      Sets the type.
      Parameters:
      type - the type as string
    • getId

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

      public void setId(@Nullable 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