graphql.servlet.internal.FallbackSubscriptionProtocolFactory 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;
/**
* @author Andrew Potter
*/
public class FallbackSubscriptionProtocolFactory extends SubscriptionProtocolFactory {
private final SubscriptionHandlerInput subscriptionHandlerInput;
public FallbackSubscriptionProtocolFactory(SubscriptionHandlerInput subscriptionHandlerInput) {
super("");
this.subscriptionHandlerInput = subscriptionHandlerInput;
}
@Override
public SubscriptionProtocolHandler createHandler() {
return new FallbackSubscriptionProtocolHandler(subscriptionHandlerInput);
}
}