Package io.smallrye.graphql.client.impl
Class ResponseReader
java.lang.Object
io.smallrye.graphql.client.impl.ResponseReader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic jakarta.json.JsonObjectparseGraphQLResponse(String input) Parse a GraphQL response from the input string.static jakarta.json.JsonObjectparseGraphQLResponse(String input, Boolean allowUnexpectedResponseFields) static GraphQLErrorreadError(jakarta.json.JsonValue errorJson) static ResponseImplstatic ResponseImplstatic ResponseImplreadFrom(String input, Map<String, List<String>> headers, Integer statusCode, String statusMessage, Boolean allowUnexpectedResponseFields)
-
Constructor Details
-
ResponseReader
public ResponseReader()
-
-
Method Details
-
parseGraphQLResponse
Parse a GraphQL response from the input string. Returns the JSON representation of the response if it is present, `null` if there is none. A GraphQL response is defined as a well-formed JSON document that, on the top level, contains at least one of the keys 'data', 'extensions' and 'errors', but NO OTHER key. (see https://spec.graphql.org/draft/#sec-Response-Format) -
parseGraphQLResponse
-
readFrom
-
readFrom
-
readFrom
-
readError
-