public class WebInput extends RequestInput
URL and the headers of the request, as well as the query name,
operation name, and variables from the request body.| Constructor and Description |
|---|
WebInput(URI uri,
HttpHeaders headers,
Map<String,Object> body,
String id)
Create an instance.
|
| Modifier and Type | Method and Description |
|---|---|
HttpHeaders |
getHeaders()
Return the headers of the request.
|
String |
getId()
Return the identifier for the request, which may be a subscription id for
correlating request and response messages, or the underlying request or connection
id, when available, or otherwise it's an
identity hash based this
WebInput instance. |
UriComponents |
getUri()
Return the URI of the HTTP request including
URL query parameters. |
configureExecutionInput, getOperationName, getQuery, getVariables, toExecutionInput, toMap, toStringpublic WebInput(URI uri, HttpHeaders headers, Map<String,Object> body, @Nullable String id)
uri - the url for the HTTP request, or WebSocket handshakeheaders - the HTTP request headersbody - the content of the request deserialized from JSONid - an identifier for the GraphQL request, e.g. a subscription id for
correlating request and response messages, or it could be an id associated with the
underlying request/connection id, if availablepublic UriComponents getUri()
URL query parameters.public HttpHeaders getHeaders()
public String getId()
identity hash based this
WebInput instance.