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

graphql.kickstart.servlet.core.DefaultGraphQLRootObjectBuilder Maven / Gradle / Ivy

package graphql.kickstart.servlet.core;

import graphql.kickstart.execution.StaticGraphQLRootObjectBuilder;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.websocket.server.HandshakeRequest;

public class DefaultGraphQLRootObjectBuilder extends StaticGraphQLRootObjectBuilder
    implements GraphQLServletRootObjectBuilder {

  public DefaultGraphQLRootObjectBuilder() {
    super(new Object());
  }

  @Override
  public Object build(HttpServletRequest req) {
    return getRootObject();
  }

  @Override
  public Object build(HandshakeRequest req) {
    return getRootObject();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy