graphql.servlet.internal.SubscriptionHandlerInput 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.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);
}
}