graphql.servlet.ConfiguredGraphQLHttpServlet 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 java.util.Objects;
class ConfiguredGraphQLHttpServlet extends GraphQLHttpServlet {
private GraphQLConfiguration configuration;
ConfiguredGraphQLHttpServlet(GraphQLConfiguration configuration) {
this.configuration = Objects.requireNonNull(configuration, "configuration is required");
}
@Override
protected GraphQLConfiguration getConfiguration() {
return configuration;
}
}