Exemple #1
0
 private <T> ListenableFuture<T> get(final URI uri, final Class<T> clazz) {
   return get(uri, Json.type(clazz));
 }
Exemple #2
0
 public static <T> ConvertResponseToPojo<T> create(
     final Class<T> clazz, final Set<Integer> decodeableStatusCodes) {
   return new ConvertResponseToPojo<>(Json.type(clazz), decodeableStatusCodes);
 }
Exemple #3
0
 private <T> ListenableFuture<T> get(final URI uri, final TypeReference<T> typeReference) {
   return get(uri, Json.type(typeReference));
 }