Package org.restheart.graphql.exchange
Class GraphQLRequest
java.lang.Object
org.restheart.exchange.Exchange<T>
org.restheart.exchange.Request<T>
org.restheart.exchange.ServiceRequest<com.google.gson.JsonElement>
org.restheart.graphql.exchange.GraphQLRequest
-
Field Summary
Fields inherited from class org.restheart.exchange.ServiceRequest
contentFields inherited from class org.restheart.exchange.Request
FORM_URLENCODED, MULTIPART, PATCH, SLASH, UNDERSCOREFields inherited from class org.restheart.exchange.Exchange
APP_FORM_URLENCODED_TYPE, APPLICATION_PDF_TYPE, HAL_JSON_MEDIA_TYPE, IN_ERROR_KEY, JSON_MEDIA_TYPE, LOGGER, MAX_BUFFERS, MAX_CONTENT_SIZE, MULTIPART_FORM_DATA_TYPE, wrapped -
Method Summary
Modifier and TypeMethodDescriptiongetQuery()com.google.gson.JsonObjectbooleanstatic GraphQLRequestinit(io.undertow.server.HttpServerExchange exchange, String appUri, GraphQLApp appDefinition)voidvoidstatic GraphQLRequestof(io.undertow.server.HttpServerExchange exchange)Methods inherited from class org.restheart.exchange.ServiceRequest
getContent, isHandledBy, of, setContentMethods inherited from class org.restheart.exchange.Request
addXForwardedHeader, getAuthenticatedAccount, getContentType, getContentType, getCookie, getHeader, getHeaders, getMethod, getPath, getPathParam, getPathParams, getPipelineInfo, getQueryParameterOfDefault, getQueryParameters, getQueryString, getRequestContentLength, getStartTime, getURL, getXForwardedHeaders, isContentTypeFormOrMultipart, isContentTypeFormOrMultipart, isContentTypeJson, isDelete, isGet, isOptions, isPatch, isPost, isPut, pipelineInfo, setContentLength, setContentType, setContentTypeAsJson, setHeader, setHeader, setPipelineInfo, setPipelineInfo, setStartTimeMethods inherited from class org.restheart.exchange.Exchange
getExchange, getWrappedExchange, isAccountInRole, isAuthenticated, isAuthenticated, isContentTypeJson, isContentTypeText, isContentTypeXml, isInError, isInError, responseInterceptorsExecuted, setInError, setInError, setResponseInterceptorsExecuted, updateBufferSize
-
Method Details
-
init
public static GraphQLRequest init(io.undertow.server.HttpServerExchange exchange, String appUri, GraphQLApp appDefinition) -
of
-
injectContentJson
- Throws:
IOException
-
injectContentGraphQL
- Throws:
IOException
-
getQuery
-
getOperationName
-
getVariables
public com.google.gson.JsonObject getVariables() -
getGraphQLAppURI
-
getAppDefinition
-
hasVariables
public boolean hasVariables()
-