graphql.servlet.DefaultGraphQLContextBuilder 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.servlet;
import javax.servlet.http.HttpServletRequest;
import javax.websocket.server.HandshakeRequest;
public class DefaultGraphQLContextBuilder implements GraphQLContextBuilder {
@Override
public GraphQLContext build(HttpServletRequest httpServletRequest) {
return new GraphQLContext(httpServletRequest);
}
@Override
public GraphQLContext build(HandshakeRequest handshakeRequest) {
return new GraphQLContext(handshakeRequest);
}
@Override
public GraphQLContext build() {
return new GraphQLContext();
}
}