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

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

package graphql.kickstart.servlet.config;

import graphql.kickstart.execution.config.DefaultGraphQLSchemaProvider;
import graphql.schema.GraphQLSchema;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.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