Class TypesafeResponse<T>
- java.lang.Object
-
- io.smallrye.graphql.client.typesafe.api.ErrorOr<T>
-
- io.smallrye.graphql.client.typesafe.api.TypesafeResponse<T>
-
public final class TypesafeResponse<T> extends ErrorOr<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)jakarta.json.JsonObjectgetExtensions()Returns a JsonObject containing extensions to the GraphQL response, if any.Map<String,List<String>>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.inthashCode()static <T> TypesafeResponse<T>of(T value)static <T> TypesafeResponse<T>ofErrors(List<GraphQLError> errors)StringtoString()static <T> TypesafeResponse<T>withTransportMetaAndExtensions(TypesafeResponse<T> typesafeResponse, Map<String,List<String>> transportMeta, jakarta.json.JsonObject responseExtensions)
-
-
-
Method Detail
-
of
public static <T> TypesafeResponse<T> of(T value)
-
ofErrors
public static <T> TypesafeResponse<T> ofErrors(List<GraphQLError> errors)
-
withTransportMetaAndExtensions
public static <T> TypesafeResponse<T> withTransportMetaAndExtensions(TypesafeResponse<T> typesafeResponse, Map<String,List<String>> transportMeta, jakarta.json.JsonObject responseExtensions)
-
getTransportMeta
public Map<String,List<String>> 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.
-
-