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

    Constructors
    Constructor
    Description
    DefaultGraphQLSpringWebSocketSessionContext(org.dataloader.DataLoaderRegistry dataLoaderRegistry, @NonNull org.springframework.web.reactive.socket.WebSocketSession webSocketSession)
     
    DefaultGraphQLSpringWebSocketSessionContext(org.springframework.web.reactive.socket.WebSocketSession webSocketSession)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.web.reactive.socket.WebSocketSession
    Deprecated.
    Use dataFetchingEnvironment.getGraphQlContext().get(WebSocketSession.class) instead.

    Methods inherited from class graphql.kickstart.execution.context.DefaultGraphQLContext

    getDataLoaderRegistry, getMapOfContext, put

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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.
      Use dataFetchingEnvironment.getGraphQlContext().get(WebSocketSession.class) instead. Since 13.0.0
      Specified by:
      getWebSocketSession in interface GraphQLSpringWebSocketSessionContext