Class GraphQLWsRequest


  • public class GraphQLWsRequest
    extends java.lang.Object
    Class to handle the message to and from the websocket.
    Since:
    1.3
    • Constructor Detail

      • GraphQLWsRequest

        public GraphQLWsRequest()
    • Method Detail

      • 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