public class AbstractGraphQLServlet extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet, GraphQLMBean, GraphQLSchemaProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractGraphQLServlet.Request |
protected static class |
AbstractGraphQLServlet.VariablesDeserializer |
| Modifier and Type | Field and Description |
|---|---|
protected GraphQLContextBuilder |
contextBuilder |
protected ExecutionStrategyProvider |
executionStrategyProvider |
protected java.util.List<GraphQLOperationListener> |
operationListeners |
protected graphql.schema.GraphQLSchema |
readOnlySchema |
protected graphql.schema.GraphQLSchema |
schema |
| Modifier and Type | Method and Description |
|---|---|
protected GraphQLContext |
createContext(java.util.Optional<javax.servlet.http.HttpServletRequest> req,
java.util.Optional<javax.servlet.http.HttpServletResponse> resp) |
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
java.lang.String |
executeQuery(java.lang.String query) |
java.lang.String[] |
getMutations() |
java.lang.String[] |
getQueries() |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, servicedestroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, logclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, getServletConfig, getServletInfo, init, servicegetReadOnlySchema, getSchemaprotected GraphQLContextBuilder contextBuilder
protected ExecutionStrategyProvider executionStrategyProvider
protected java.util.List<GraphQLOperationListener> operationListeners
protected graphql.schema.GraphQLSchema schema
protected graphql.schema.GraphQLSchema readOnlySchema
public java.lang.String[] getQueries()
getQueries in interface GraphQLMBeanpublic java.lang.String[] getMutations()
getMutations in interface GraphQLMBeanprotected GraphQLContext createContext(java.util.Optional<javax.servlet.http.HttpServletRequest> req, java.util.Optional<javax.servlet.http.HttpServletResponse> resp)
public java.lang.String executeQuery(java.lang.String query)
executeQuery in interface GraphQLMBeanprotected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionjava.io.IOExceptionprotected void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionjava.io.IOException