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

graphql.kickstart.servlet.config.DefaultGraphQLSchemaServletProvider Maven / Gradle / Ivy

There is a newer version: 16.0.0
Show newest version
package graphql.kickstart.servlet.config;

import graphql.kickstart.execution.config.DefaultGraphQLSchemaProvider;
import graphql.schema.GraphQLSchema;
import javax.servlet.http.HttpServletRequest;
import javax.websocket.server.HandshakeRequest;

/** @author Andrew Potter */
public class DefaultGraphQLSchemaServletProvider extends DefaultGraphQLSchemaProvider
    implements GraphQLSchemaServletProvider {

  public DefaultGraphQLSchemaServletProvider(GraphQLSchema schema) {
    super(schema);
  }

  @Override
  public GraphQLSchema getSchema(HttpServletRequest request) {
    return getSchema();
  }

  @Override
  public GraphQLSchema getSchema(HandshakeRequest request) {
    return getSchema();
  }

  @Override
  public GraphQLSchema getReadOnlySchema(HttpServletRequest request) {
    return getReadOnlySchema();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy