graphql.kickstart.servlet.core.DefaultGraphQLRootObjectBuilder 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.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();
}
}