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.Constructor and Description |
---|
WebGraphQlRequest(URI uri,
HttpHeaders headers,
Map<String,Object> body,
String id,
Locale locale)
Create an instance.
|
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
getHeaders()
Return the HTTP headers of the request or WebSocket handshake.
|
UriComponents |
getUri()
Return the URL for the HTTP request or WebSocket handshake.
|
configureExecutionInput, executionId, getExecutionId, getId, getLocale, toExecutionInput, toString
equals, getDocument, getExtensions, getOperationName, getVariables, hashCode, toMap
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
configureExecutionInput, executionId, getExecutionId, getId, getLocale, toExecutionInput
getDocument, getExtensions, getOperationName, getVariables, toMap
public WebGraphQlRequest(URI uri, HttpHeaders headers, Map<String,Object> body, String id, @Nullable Locale locale)
uri
- the URL for the HTTP request or WebSocket handshakeheaders
- the HTTP request headersbody
- the deserialized content of the GraphQL requestid
- an identifier for the GraphQL requestlocale
- the locale from the HTTP request, if anypublic UriComponents getUri()
public HttpHeaders getHeaders()