graphql.kickstart.servlet.ConfiguredGraphQLHttpServlet Maven / Gradle / Ivy
package graphql.kickstart.servlet;
import java.util.Objects;
class ConfiguredGraphQLHttpServlet extends GraphQLHttpServlet {
private final GraphQLConfiguration configuration;
ConfiguredGraphQLHttpServlet(GraphQLConfiguration configuration) {
this.configuration = Objects.requireNonNull(configuration, "configuration is required");
}
@Override
protected GraphQLConfiguration getConfiguration() {
return configuration;
}
}