All Downloads are FREE. Search and download functionalities are using the official Maven repository.

graphql.kickstart.servlet.GraphQLHttpServlet Maven / Gradle / Ivy

There is a newer version: 16.0.0
Show newest version
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy