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

graphql.servlet.internal.SubscriptionHandlerInput Maven / Gradle / Ivy

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

import graphql.servlet.GraphQLInvocationInputFactory;
import graphql.servlet.GraphQLObjectMapper;
import graphql.servlet.GraphQLQueryInvoker;
import graphql.servlet.SubscriptionConnectionListener;

import java.util.Optional;

public class SubscriptionHandlerInput {

    private final GraphQLInvocationInputFactory invocationInputFactory;
    private final GraphQLQueryInvoker queryInvoker;
    private final GraphQLObjectMapper graphQLObjectMapper;
    private final SubscriptionConnectionListener subscriptionConnectionListener;

    public SubscriptionHandlerInput(GraphQLInvocationInputFactory invocationInputFactory, GraphQLQueryInvoker queryInvoker, GraphQLObjectMapper graphQLObjectMapper, SubscriptionConnectionListener subscriptionConnectionListener) {
        this.invocationInputFactory = invocationInputFactory;
        this.queryInvoker = queryInvoker;
        this.graphQLObjectMapper = graphQLObjectMapper;
        this.subscriptionConnectionListener = subscriptionConnectionListener;
    }

    public GraphQLInvocationInputFactory getInvocationInputFactory() {
        return invocationInputFactory;
    }

    public GraphQLQueryInvoker getQueryInvoker() {
        return queryInvoker;
    }

    public GraphQLObjectMapper getGraphQLObjectMapper() {
        return graphQLObjectMapper;
    }

    public Optional getSubscriptionConnectionListener() {
        return Optional.ofNullable(subscriptionConnectionListener);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy