public class AuthorizationGraphQLServletContext
extends java.lang.Object
implements graphql.kickstart.execution.context.GraphQLContext
| Constructor and Description |
|---|
AuthorizationGraphQLServletContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.jfantasy.framework.security.SecurityContext securityContext) |
AuthorizationGraphQLServletContext(javax.websocket.Session session,
javax.websocket.server.HandshakeRequest request) |
| Modifier and Type | Method and Description |
|---|---|
org.jfantasy.framework.security.authentication.Authentication |
getAuthentication() |
org.dataloader.DataLoaderRegistry |
getDataLoaderRegistry() |
javax.servlet.http.HttpServletRequest |
getRequest() |
javax.servlet.http.HttpServletResponse |
getResponse() |
org.jfantasy.framework.security.SecurityContext |
getSecurityContext() |
javax.websocket.Session |
getSession() |
java.util.Optional<javax.security.auth.Subject> |
getSubject() |
void |
setAuthentication(org.jfantasy.framework.security.authentication.Authentication authentication) |
void |
setDataLoaderRegistry(org.dataloader.DataLoaderRegistry dataLoaderRegistry) |
public AuthorizationGraphQLServletContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.jfantasy.framework.security.SecurityContext securityContext)
public AuthorizationGraphQLServletContext(javax.websocket.Session session,
javax.websocket.server.HandshakeRequest request)
public java.util.Optional<javax.security.auth.Subject> getSubject()
getSubject in interface graphql.kickstart.execution.context.GraphQLContextpublic org.dataloader.DataLoaderRegistry getDataLoaderRegistry()
getDataLoaderRegistry in interface graphql.kickstart.execution.context.GraphQLContextpublic void setDataLoaderRegistry(org.dataloader.DataLoaderRegistry dataLoaderRegistry)
public javax.servlet.http.HttpServletRequest getRequest()
public javax.websocket.Session getSession()
public javax.servlet.http.HttpServletResponse getResponse()
public org.jfantasy.framework.security.authentication.Authentication getAuthentication()
public void setAuthentication(org.jfantasy.framework.security.authentication.Authentication authentication)
public org.jfantasy.framework.security.SecurityContext getSecurityContext()