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

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

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

import graphql.kickstart.execution.StaticGraphQLRootObjectBuilder;
import javax.servlet.http.HttpServletRequest;
import javax.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