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, getUri
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 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()