public class WebSocketGraphQlRequest extends WebGraphQlRequest
WebGraphQlRequest extension for
server handling of GraphQL over WebSocket requests.| Constructor and Description |
|---|
WebSocketGraphQlRequest(URI uri,
HttpHeaders headers,
Map<String,Object> body,
String id,
Locale locale,
WebSocketSessionInfo sessionInfo)
Create an instance.
|
| Modifier and Type | Method and Description |
|---|---|
WebSocketSessionInfo |
getSessionInfo()
Return information about the underlying WebSocket session.
|
getHeaders, getUriconfigureExecutionInput, 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 WebSocketGraphQlRequest(URI uri, HttpHeaders headers, Map<String,Object> body, String id, @Nullable Locale locale, WebSocketSessionInfo sessionInfo)
uri - the URL for the HTTP request or WebSocket handshakeheaders - the HTTP request headersbody - the deserialized content of the GraphQL requestid - the id from the GraphQL over WebSocket "subscribe" messagelocale - the locale from the HTTP request, if anysessionInfo - the WebSocket session idpublic WebSocketSessionInfo getSessionInfo()