java.lang.Object
org.apache.tinkerpop.gremlin.server.handler.StateKey

public final class StateKey extends Object
Keys used in the various handlers to store state in the pipeline.
Author:
Stephen Mallette (http://stephen.genoprime.com)
  • Field Details

    • SERIALIZER

      public static final io.netty.util.AttributeKey<org.javatuples.Pair<String,MessageSerializer<?>>> SERIALIZER
      The key for the current serializer requested by the client.
    • REQUEST_HEADERS

      public static final io.netty.util.AttributeKey<io.netty.handler.codec.http.HttpHeaders> REQUEST_HEADERS
      The key for the current request headers.
    • REQUEST_ID

      public static final io.netty.util.AttributeKey<UUID> REQUEST_ID
      The key for the current request ID.
    • AUTHENTICATED_USER

      public static final io.netty.util.AttributeKey<AuthenticatedUser> AUTHENTICATED_USER
      The key for the current AuthenticatedUser.
    • RESPONSE_COORDINATOR

      public static final io.netty.util.AttributeKey<org.apache.tinkerpop.gremlin.server.handler.HttpResponseCoordinator> RESPONSE_COORDINATOR
      The key for the in-flight request's HttpResponseCoordinator. Cleared at request start (alongside the in-use flag) and set by HttpGremlinEndpointHandler once a request reaches the endpoint and a coordinator is created. It lets exceptionCaught route a late pipeline error through the coordinator so it terminates an already-started chunked stream rather than writing a second, conflicting response. When absent — the error arrived before the endpoint ran, so no response has started — the error path falls back to a self-contained sendError.