graphql.kickstart.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.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;
}
}