Class StateKey
java.lang.Object
org.apache.tinkerpop.gremlin.server.handler.StateKey
Keys used in the various handlers to store state in the pipeline.
- Author:
- Stephen Mallette (http://stephen.genoprime.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.netty.util.AttributeKey<AuthenticatedUser>The key for the currentAuthenticatedUser.static final io.netty.util.AttributeKey<io.netty.handler.codec.http.HttpHeaders>The key for the current request headers.static final io.netty.util.AttributeKey<UUID>The key for the current request ID.static final io.netty.util.AttributeKey<org.apache.tinkerpop.gremlin.server.handler.HttpResponseCoordinator>The key for the in-flight request'sHttpResponseCoordinator.static final io.netty.util.AttributeKey<org.javatuples.Pair<String,MessageSerializer<?>>> The key for the current serializer requested by the client. -
Method Summary
-
Field Details
-
SERIALIZER
public static final io.netty.util.AttributeKey<org.javatuples.Pair<String,MessageSerializer<?>>> SERIALIZERThe 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_HEADERSThe key for the current request headers. -
REQUEST_ID
The key for the current request ID. -
AUTHENTICATED_USER
The key for the currentAuthenticatedUser. -
RESPONSE_COORDINATOR
public static final io.netty.util.AttributeKey<org.apache.tinkerpop.gremlin.server.handler.HttpResponseCoordinator> RESPONSE_COORDINATORThe key for the in-flight request'sHttpResponseCoordinator. Cleared at request start (alongside the in-use flag) and set byHttpGremlinEndpointHandleronce a request reaches the endpoint and a coordinator is created. It letsexceptionCaughtroute 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-containedsendError.
-