graphql.servlet.DefaultGraphQLServlet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graphql-java-servlet Show documentation
Show all versions of graphql-java-servlet Show documentation
relay.js-compatible GraphQL servlet
package graphql.servlet;
import javax.servlet.ServletConfig;
public class DefaultGraphQLServlet extends AbstractGraphQLHttpServlet {
@Override
public void init(ServletConfig servletConfig) {
super.init(servletConfig);
}
@Override
protected GraphQLInvocationInputFactory getInvocationInputFactory() {
return null;
}
@Override
protected GraphQLQueryInvoker getQueryInvoker() {
return GraphQLQueryInvoker.newBuilder().build();
}
@Override
protected GraphQLObjectMapper getGraphQLObjectMapper() {
return GraphQLObjectMapper.newBuilder().build();
}
@Override
protected boolean isAsyncServletMode() {
return false;
}
}