public class SimpleGraphQLServlet extends GraphQLServlet
GraphQLServlet.GraphQLRequest, GraphQLServlet.RequestHandler, GraphQLServlet.VariablesDeserializer
Modifier and Type | Field and Description |
---|---|
static graphql.schema.GraphQLObjectType |
EMPTY_MUTATION_TYPE
Workaround for https://github.com/graphql-java/graphql-java/issues/345
|
APPLICATION_JSON_UTF8, STATUS_BAD_REQUEST, STATUS_OK
Constructor and Description |
---|
SimpleGraphQLServlet(graphql.schema.GraphQLSchema schema,
graphql.execution.ExecutionStrategy executionStrategy) |
SimpleGraphQLServlet(graphql.schema.GraphQLSchema schema,
graphql.execution.ExecutionStrategy executionStrategy,
java.util.List<GraphQLOperationListener> operationListeners,
java.util.List<GraphQLServletListener> servletListeners) |
Modifier and Type | Method and Description |
---|---|
protected GraphQLContext |
createContext(java.util.Optional<javax.servlet.http.HttpServletRequest> request,
java.util.Optional<javax.servlet.http.HttpServletResponse> response) |
protected graphql.execution.ExecutionStrategy |
getExecutionStrategy() |
graphql.schema.GraphQLSchema |
getReadOnlySchema() |
graphql.schema.GraphQLSchema |
getSchema() |
protected java.util.Map<java.lang.String,java.lang.Object> |
transformVariables(graphql.schema.GraphQLSchema schema,
java.lang.String query,
java.util.Map<java.lang.String,java.lang.Object> variables) |
addOperationListener, addServletListener, doGet, doPost, executeQuery, filterGraphQLErrors, getMutations, getQueries, removeOperationListener, removeServletListener
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
public static final graphql.schema.GraphQLObjectType EMPTY_MUTATION_TYPE
public SimpleGraphQLServlet(graphql.schema.GraphQLSchema schema, graphql.execution.ExecutionStrategy executionStrategy)
public SimpleGraphQLServlet(graphql.schema.GraphQLSchema schema, graphql.execution.ExecutionStrategy executionStrategy, java.util.List<GraphQLOperationListener> operationListeners, java.util.List<GraphQLServletListener> servletListeners)
public graphql.schema.GraphQLSchema getSchema()
public graphql.schema.GraphQLSchema getReadOnlySchema()
protected GraphQLContext createContext(java.util.Optional<javax.servlet.http.HttpServletRequest> request, java.util.Optional<javax.servlet.http.HttpServletResponse> response)
createContext
in class GraphQLServlet
protected graphql.execution.ExecutionStrategy getExecutionStrategy()
getExecutionStrategy
in class GraphQLServlet
protected java.util.Map<java.lang.String,java.lang.Object> transformVariables(graphql.schema.GraphQLSchema schema, java.lang.String query, java.util.Map<java.lang.String,java.lang.Object> variables)
transformVariables
in class GraphQLServlet