Class GraphQLWebsocketAutoConfiguration
java.lang.Object
graphql.kickstart.autoconfigure.web.servlet.GraphQLWebsocketAutoConfiguration
@AutoConfiguration
@ConditionalOnWebApplication(type=SERVLET)
@ConditionalOnClass({org.springframework.web.servlet.DispatcherServlet.class,org.springframework.web.socket.server.standard.ServerEndpointRegistration.class})
@Conditional(OnSchemaOrSchemaProviderBean.class)
@ConditionalOnProperty(value="graphql.servlet.websocket.enabled",
havingValue="true",
matchIfMissing=true)
@AutoConfigureAfter({GraphQLJavaToolsAutoConfiguration.class,GraphQLWebAutoConfiguration.class})
@EnableConfigurationProperties({graphql.kickstart.autoconfigure.web.servlet.GraphQLSubscriptionApolloProperties.class,graphql.kickstart.autoconfigure.web.servlet.GraphQLSubscriptionWebsocketProperties.class})
public class GraphQLWebsocketAutoConfiguration
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongraphql.kickstart.servlet.GraphQLWebsocketServletgraphQLWebsocketServlet(graphql.kickstart.execution.subscriptions.GraphQLSubscriptionInvocationInputFactory invocationInputFactory, graphql.kickstart.execution.GraphQLInvoker graphQLInvoker, graphql.kickstart.execution.GraphQLObjectMapper graphQLObjectMapper, Collection<graphql.kickstart.execution.subscriptions.SubscriptionConnectionListener> connectionListeners) org.springframework.web.socket.server.standard.ServerEndpointExporterorg.springframework.web.socket.server.standard.ServerEndpointRegistrationserverEndpointRegistration(graphql.kickstart.servlet.GraphQLWebsocketServlet servlet)
-
Constructor Details
-
GraphQLWebsocketAutoConfiguration
public GraphQLWebsocketAutoConfiguration()
-
-
Method Details
-
graphQLWebsocketServlet
@Bean @ConditionalOnMissingBean public graphql.kickstart.servlet.GraphQLWebsocketServlet graphQLWebsocketServlet(graphql.kickstart.execution.subscriptions.GraphQLSubscriptionInvocationInputFactory invocationInputFactory, graphql.kickstart.execution.GraphQLInvoker graphQLInvoker, graphql.kickstart.execution.GraphQLObjectMapper graphQLObjectMapper, @Autowired(required=false) Collection<graphql.kickstart.execution.subscriptions.SubscriptionConnectionListener> connectionListeners) -
serverEndpointRegistration
@Bean @ConditionalOnClass(jakarta.websocket.server.ServerContainer.class) public org.springframework.web.socket.server.standard.ServerEndpointRegistration serverEndpointRegistration(graphql.kickstart.servlet.GraphQLWebsocketServlet servlet) -
serverEndpointExporter
@Bean @ConditionalOnMissingBean @ConditionalOnClass(jakarta.websocket.server.ServerContainer.class) public org.springframework.web.socket.server.standard.ServerEndpointExporter serverEndpointExporter()
-