public class GraphQlHttpHandler extends Object
RouterFunctions.| Constructor and Description |
|---|
GraphQlHttpHandler(WebGraphQlHandler graphQlHandler)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ServerResponse |
handleRequest(ServerRequest serverRequest)
Handle GraphQL requests over HTTP.
|
public GraphQlHttpHandler(WebGraphQlHandler graphQlHandler)
graphQlHandler - common handler for GraphQL over HTTP requestspublic ServerResponse handleRequest(ServerRequest serverRequest) throws javax.servlet.ServletException
serverRequest - the incoming HTTP requestjavax.servlet.ServletException - may be raised when reading the request body, e.g.
HttpMediaTypeNotSupportedException.