graphql.kickstart.servlet.GraphQLHttpServlet 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.kickstart.servlet;
import graphql.schema.GraphQLSchema;
/** @author Michiel Oliemans */
public abstract class GraphQLHttpServlet extends AbstractGraphQLHttpServlet {
public static GraphQLHttpServlet with(GraphQLSchema schema) {
return new ConfiguredGraphQLHttpServlet(GraphQLConfiguration.with(schema).build());
}
public static GraphQLHttpServlet with(GraphQLConfiguration configuration) {
return new ConfiguredGraphQLHttpServlet(configuration);
}
@Override
protected abstract GraphQLConfiguration getConfiguration();
}