public class HTTPAwareContextImpl extends Object implements graphql.kickstart.execution.context.GraphQLContext
| Modifier and Type | Class and Description |
|---|---|
static class |
HTTPAwareContextImpl.BatchContext
Encapsulates logic to add multiple statements contained in the same operation that need to be
executed in a batch.
|
| Constructor and Description |
|---|
HTTPAwareContextImpl(org.dataloader.DataLoaderRegistry dataLoaderRegistry,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
HTTPAwareContextImpl(org.dataloader.DataLoaderRegistry dataLoaderRegistry,
javax.websocket.Session session,
javax.websocket.server.HandshakeRequest handshakeRequest) |
| Modifier and Type | Method and Description |
|---|---|
static io.jsonwebtoken.Claims |
decodeJWT(String jwt) |
String |
getAuthToken() |
HTTPAwareContextImpl.BatchContext |
getBatchContext() |
Optional<org.dataloader.DataLoaderRegistry> |
getDataLoaderRegistry() |
Optional<Subject> |
getSubject() |
String |
getUserOrRole() |
public HTTPAwareContextImpl(org.dataloader.DataLoaderRegistry dataLoaderRegistry,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
public HTTPAwareContextImpl(org.dataloader.DataLoaderRegistry dataLoaderRegistry,
javax.websocket.Session session,
javax.websocket.server.HandshakeRequest handshakeRequest)
public String getAuthToken()
public String getUserOrRole()
public static io.jsonwebtoken.Claims decodeJWT(String jwt)
public Optional<Subject> getSubject()
getSubject in interface graphql.kickstart.execution.context.GraphQLContextpublic Optional<org.dataloader.DataLoaderRegistry> getDataLoaderRegistry()
getDataLoaderRegistry in interface graphql.kickstart.execution.context.GraphQLContextpublic HTTPAwareContextImpl.BatchContext getBatchContext()
Copyright © 2020. All rights reserved.