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 Details

    • 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.
    • toString

      public String toString()
      Overrides:
      toString in class ErrorOr<T>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class ErrorOr<T>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class ErrorOr<T>