public class StargateGraphqlContext extends Object implements com.apollographql.federation.graphqljava.tracing.HTTPRequestHeaders
| Modifier and Type | Class and Description |
|---|---|
static class |
StargateGraphqlContext.BatchContext
Encapsulates logic to add multiple queries contained in the same operation that need to be
executed in a batch.
|
| Constructor and Description |
|---|
StargateGraphqlContext(javax.servlet.http.HttpServletRequest request,
AuthorizationService authorizationService,
Persistence persistence,
GraphqlCache graphqlCache) |
| Modifier and Type | Method and Description |
|---|---|
AuthorizationService |
getAuthorizationService() |
StargateGraphqlContext.BatchContext |
getBatchContext() |
DataStore |
getDataStore() |
GraphqlCache |
getGraphqlCache() |
String |
getHTTPRequestHeader(String headerName)
Give context clients access to the HTTP headers.
|
Persistence |
getPersistence() |
AuthenticationSubject |
getSubject() |
boolean |
isOverloaded() |
void |
setOverloaded()
Records the fact that at least one CQL query in the current execution failed with
OverloadedException. |
public StargateGraphqlContext(javax.servlet.http.HttpServletRequest request,
AuthorizationService authorizationService,
Persistence persistence,
GraphqlCache graphqlCache)
public AuthenticationSubject getSubject()
public StargateGraphqlContext.BatchContext getBatchContext()
public AuthorizationService getAuthorizationService()
public DataStore getDataStore()
public Persistence getPersistence()
public GraphqlCache getGraphqlCache()
public void setOverloaded()
OverloadedException. This will be translated into an HTTP 429 error at the resource layer.public boolean isOverloaded()
public String getHTTPRequestHeader(String headerName)
This is needed by the federated tracing implementation (FederatedTracingInstrumentation).
getHTTPRequestHeader in interface com.apollographql.federation.graphqljava.tracing.HTTPRequestHeadersSchemaProcessorCopyright © 2024. All rights reserved.