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

graphql.servlet.DefaultGraphQLContextBuilder Maven / Gradle / Ivy

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

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.websocket.Session;
import javax.websocket.server.HandshakeRequest;

public class DefaultGraphQLContextBuilder implements GraphQLContextBuilder {

    @Override
    public GraphQLContext build(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) {
        return new GraphQLContext(httpServletRequest, httpServletResponse);
    }

    @Override
    public GraphQLContext build(Session session, HandshakeRequest handshakeRequest) {
        return new GraphQLContext(session, handshakeRequest);
    }

    @Override
    public GraphQLContext build() {
        return new GraphQLContext();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy