Class WebGraphQlRequest

All Implemented Interfaces:
ExecutionGraphQlRequest, GraphQlRequest
Direct Known Subclasses:
WebSocketGraphQlRequest

public class WebGraphQlRequest extends DefaultExecutionGraphQlRequest implements ExecutionGraphQlRequest
GraphQlRequest implementation for server handling over HTTP or WebSocket. Provides access to the URL and headers of the underlying request. For WebSocket, these are the URL and headers of the HTTP handshake request.
Since:
1.0.0
Author:
Rossen Stoyanchev
  • Constructor Details

    • WebGraphQlRequest

      public WebGraphQlRequest(URI uri, HttpHeaders headers, Map<String,Object> body, String id, @Nullable Locale locale)
      Create an instance.
      Parameters:
      uri - the URL for the HTTP request or WebSocket handshake
      headers - the HTTP request headers
      body - the deserialized content of the GraphQL request
      id - an identifier for the GraphQL request
      locale - the locale from the HTTP request, if any
  • Method Details

    • getUri

      public UriComponents getUri()
      Return the URL for the HTTP request or WebSocket handshake.
    • getHeaders

      public HttpHeaders getHeaders()
      Return the HTTP headers of the request or WebSocket handshake.