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, toStringequals, getDocument, getExtensions, getOperationName, getVariables, hashCode, toMapclone, finalize, getClass, notify, notifyAll, wait, wait, waitconfigureExecutionInput, executionId, getExecutionId, getId, getLocale, toExecutionInputgetDocument, getExtensions, getOperationName, getVariables, toMappublic 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()