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

  • 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.
    • getCookies

      public MultiValueMap<String,HttpCookie> getCookies()
      Return the cookies of the request of WebSocket handshake.
      Since:
      1.1.3
    • getAttributes

      public Map<String,Object> getAttributes()
      Return the request or WebSocket session attributes.
      Since:
      1.1.3