Class DefaultGraphQLServletContext

java.lang.Object
graphql.kickstart.execution.context.DefaultGraphQLContext
graphql.kickstart.servlet.context.DefaultGraphQLServletContext
All Implemented Interfaces:
graphql.kickstart.execution.context.GraphQLKickstartContext, GraphQLServletContext

public class DefaultGraphQLServletContext extends graphql.kickstart.execution.context.DefaultGraphQLContext implements GraphQLServletContext
Deprecated.
Use GraphQLKickstartContext instead
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Deprecated.
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    DefaultGraphQLServletContext(org.dataloader.DataLoaderRegistry dataLoaderRegistry, jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse)
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
     
    createServletContext(org.dataloader.DataLoaderRegistry registry)
    Deprecated.
     
    List<jakarta.servlet.http.Part>
    Deprecated.
    Use dataFetchingEnvironment.getGraphQlContext().get(HttpServletRequest.class) instead to get the request and retrieve the file parts yourself.
    jakarta.servlet.http.HttpServletRequest
    Deprecated.
    Use dataFetchingEnvironment.getGraphQlContext().get(HttpServletRequest.class) instead.
    jakarta.servlet.http.HttpServletResponse
    Deprecated.
    Use dataFetchingEnvironment.getGraphQlContext().get(HttpServletResponse.class) instead.
    Map<String,List<jakarta.servlet.http.Part>>
    Deprecated.
    Use dataFetchingEnvironment.getGraphQlContext().get(HttpServletRequest.class) instead to get the request and retrieve the parts yourself.

    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

    • DefaultGraphQLServletContext

      protected DefaultGraphQLServletContext(org.dataloader.DataLoaderRegistry dataLoaderRegistry, jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse)
      Deprecated.
  • Method Details

    • createServletContext

      public static DefaultGraphQLServletContext.Builder createServletContext(org.dataloader.DataLoaderRegistry registry)
      Deprecated.
    • createServletContext

      public static DefaultGraphQLServletContext.Builder createServletContext()
      Deprecated.
    • getHttpServletRequest

      @Deprecated public jakarta.servlet.http.HttpServletRequest getHttpServletRequest()
      Deprecated.
      Use dataFetchingEnvironment.getGraphQlContext().get(HttpServletRequest.class) instead. Since 13.0.0
      Specified by:
      getHttpServletRequest in interface GraphQLServletContext
    • getHttpServletResponse

      @Deprecated public jakarta.servlet.http.HttpServletResponse getHttpServletResponse()
      Deprecated.
      Use dataFetchingEnvironment.getGraphQlContext().get(HttpServletResponse.class) instead. Since 13.0.0
      Specified by:
      getHttpServletResponse in interface GraphQLServletContext
    • getFileParts

      @Deprecated public List<jakarta.servlet.http.Part> getFileParts()
      Deprecated.
      Use dataFetchingEnvironment.getGraphQlContext().get(HttpServletRequest.class) instead to get the request and retrieve the file parts yourself. Since 13.0.0
      Specified by:
      getFileParts in interface GraphQLServletContext
    • getParts

      @Deprecated public Map<String,List<jakarta.servlet.http.Part>> getParts()
      Deprecated.
      Use dataFetchingEnvironment.getGraphQlContext().get(HttpServletRequest.class) instead to get the request and retrieve the parts yourself. Since 13.0.0
      Specified by:
      getParts in interface GraphQLServletContext