Package graphql.kickstart.spring.webflux
Class DefaultGraphQLSpringWebSocketSessionContext
java.lang.Object
graphql.kickstart.execution.context.DefaultGraphQLContext
graphql.kickstart.spring.webflux.DefaultGraphQLSpringWebSocketSessionContext
- All Implemented Interfaces:
graphql.kickstart.execution.context.GraphQLKickstartContext,GraphQLSpringWebSocketSessionContext
public class DefaultGraphQLSpringWebSocketSessionContext
extends graphql.kickstart.execution.context.DefaultGraphQLContext
implements GraphQLSpringWebSocketSessionContext
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultGraphQLSpringWebSocketSessionContext(org.dataloader.DataLoaderRegistry dataLoaderRegistry, @NonNull org.springframework.web.reactive.socket.WebSocketSession webSocketSession) DefaultGraphQLSpringWebSocketSessionContext(org.springframework.web.reactive.socket.WebSocketSession webSocketSession) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.reactive.socket.WebSocketSessionDeprecated.Methods inherited from class graphql.kickstart.execution.context.DefaultGraphQLContext
getDataLoaderRegistry, getMapOfContext, putMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface graphql.kickstart.execution.context.GraphQLKickstartContext
getDataLoaderRegistry, getMapOfContext
-
Constructor Details
-
DefaultGraphQLSpringWebSocketSessionContext
public DefaultGraphQLSpringWebSocketSessionContext(org.springframework.web.reactive.socket.WebSocketSession webSocketSession) -
DefaultGraphQLSpringWebSocketSessionContext
public DefaultGraphQLSpringWebSocketSessionContext(org.dataloader.DataLoaderRegistry dataLoaderRegistry, @NonNull @NonNull org.springframework.web.reactive.socket.WebSocketSession webSocketSession)
-
-
Method Details
-
getWebSocketSession
public org.springframework.web.reactive.socket.WebSocketSession getWebSocketSession()Deprecated.UsedataFetchingEnvironment.getGraphQlContext().get(WebSocketSession.class)instead. Since 13.0.0- Specified by:
getWebSocketSessionin interfaceGraphQLSpringWebSocketSessionContext
-
dataFetchingEnvironment.getGraphQlContext().get(WebSocketSession.class)instead.