public abstract class AbstractGraphQLHttpServlet extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet, GraphQLMBean
Constructor and Description |
---|
AbstractGraphQLHttpServlet() |
AbstractGraphQLHttpServlet(java.util.List<GraphQLServletListener> listeners) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(GraphQLServletListener servletListener) |
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) |
protected GraphQLConfiguration |
getConfiguration() |
protected abstract graphql.kickstart.execution.GraphQLObjectMapper |
getGraphQLObjectMapper()
Deprecated.
override
getConfiguration() instead |
protected abstract GraphQLInvocationInputFactory |
getInvocationInputFactory()
Deprecated.
override
getConfiguration() instead |
java.lang.String[] |
getMutations() |
java.lang.String[] |
getQueries() |
protected abstract graphql.kickstart.execution.GraphQLQueryInvoker |
getQueryInvoker()
Deprecated.
override
getConfiguration() instead |
void |
init() |
protected abstract boolean |
isAsyncServletMode()
Deprecated.
override
getConfiguration() instead |
void |
removeListener(GraphQLServletListener servletListener) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
public AbstractGraphQLHttpServlet()
public AbstractGraphQLHttpServlet(java.util.List<GraphQLServletListener> listeners)
@Deprecated protected abstract graphql.kickstart.execution.GraphQLQueryInvoker getQueryInvoker()
getConfiguration()
instead@Deprecated protected abstract GraphQLInvocationInputFactory getInvocationInputFactory()
getConfiguration()
instead@Deprecated protected abstract graphql.kickstart.execution.GraphQLObjectMapper getGraphQLObjectMapper()
getConfiguration()
instead@Deprecated protected abstract boolean isAsyncServletMode()
getConfiguration()
insteadprotected GraphQLConfiguration getConfiguration()
public void init()
init
in class javax.servlet.GenericServlet
public void addListener(GraphQLServletListener servletListener)
public void removeListener(GraphQLServletListener servletListener)
public java.lang.String[] getQueries()
getQueries
in interface GraphQLMBean
public java.lang.String[] getMutations()
getMutations
in interface GraphQLMBean
public java.lang.String executeQuery(java.lang.String query)
executeQuery
in interface GraphQLMBean
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
doGet
in class javax.servlet.http.HttpServlet
protected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
doPost
in class javax.servlet.http.HttpServlet