Class 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
    • Constructor Summary

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

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static DefaultGraphQLServletContext.Builder createServletContext()
      Deprecated.
       
      static DefaultGraphQLServletContext.Builder createServletContext​(org.dataloader.DataLoaderRegistry registry)
      Deprecated.
       
      java.util.List<javax.servlet.http.Part> getFileParts()
      Deprecated.
      Use dataFetchingEnvironment.getGraphQlContext().get(HttpServletRequest.class) instead to get the request and retrieve the file parts yourself.
      javax.servlet.http.HttpServletRequest getHttpServletRequest()
      Deprecated.
      Use dataFetchingEnvironment.getGraphQlContext().get(HttpServletRequest.class) instead.
      javax.servlet.http.HttpServletResponse getHttpServletResponse()
      Deprecated.
      Use dataFetchingEnvironment.getGraphQlContext().get(HttpServletResponse.class) instead.
      java.util.Map<java.lang.String,​java.util.List<javax.servlet.http.Part>> getParts()
      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 Detail

      • DefaultGraphQLServletContext

        protected DefaultGraphQLServletContext​(org.dataloader.DataLoaderRegistry dataLoaderRegistry,
                                               javax.servlet.http.HttpServletRequest httpServletRequest,
                                               javax.servlet.http.HttpServletResponse httpServletResponse)
        Deprecated.
    • Method Detail

      • getHttpServletRequest

        @Deprecated
        public javax.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 javax.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 java.util.List<javax.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 java.util.Map<java.lang.String,​java.util.List<javax.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