Class JSONArrayBodyHandler<Item>

java.lang.Object
com.github.tadukoo.web.rest.json.JSONArrayBodyHandler<Item>
All Implemented Interfaces:
HttpResponse.BodyHandler<com.github.tadukoo.parsing.json.JSONArray<Item>>

public class JSONArrayBodyHandler<Item> extends Object implements HttpResponse.BodyHandler<com.github.tadukoo.parsing.json.JSONArray<Item>>
A Response Body Handler used for grabbing the response as a JSONArray.
Since:
Alpha v.0.1
Version:
Alpha v.0.1.2
Author:
Logan Ferree (Tadukoo)
  • Field Details

    • clazz

      private final Class<Item> clazz
      The class to convert the response items into
  • Constructor Details

    • JSONArrayBodyHandler

      public JSONArrayBodyHandler(Class<Item> clazz)
      Constructs a JSON Array Body Handler for the given type of item
      Parameters:
      clazz - The class to convert the response items into
  • Method Details