Class TypesafeResponse<T>
java.lang.Object
io.smallrye.graphql.client.typesafe.api.ErrorOr<T>
io.smallrye.graphql.client.typesafe.api.TypesafeResponse<T>
-
Method Summary
Modifier and TypeMethodDescriptionbooleanjakarta.json.JsonObjectReturns a JsonObject containing extensions to the GraphQL response, if any.Returns a map containing transport metadata as key-value pairs, where the key is a String and the value is a List of Strings.inthashCode()static <T> TypesafeResponse<T> of(T value) static <T> TypesafeResponse<T> ofErrors(List<GraphQLError> errors) toString()static <T> TypesafeResponse<T> withTransportMetaAndExtensions(TypesafeResponse<T> typesafeResponse, Map<String, List<String>> transportMeta, jakarta.json.JsonObject responseExtensions)
-
Method Details
-
of
-
ofErrors
-
withTransportMetaAndExtensions
public static <T> TypesafeResponse<T> withTransportMetaAndExtensions(TypesafeResponse<T> typesafeResponse, Map<String, List<String>> transportMeta, jakarta.json.JsonObject responseExtensions) -
getTransportMeta
Returns a map containing transport metadata as key-value pairs, where the key is a String and the value is a List of Strings. -
getExtensions
public jakarta.json.JsonObject getExtensions()Returns a JsonObject containing extensions to the GraphQL response, if any. -
toString
-
equals
-
hashCode
public int hashCode()
-