Class JSONClassBodyHandler<J extends com.github.tadukoo.parsing.json.JSONClass>

java.lang.Object
com.github.tadukoo.web.rest.json.JSONClassBodyHandler<J>
Type Parameters:
J - The JSONClass to convert the response into
All Implemented Interfaces:
HttpResponse.BodyHandler<J>

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

    • clazz

      private final Class<J extends com.github.tadukoo.parsing.json.JSONClass> clazz
      The JSONClass class to convert the response into
  • Constructor Details

    • JSONClassBodyHandler

      public JSONClassBodyHandler(Class<J> clazz)
      Constructs a JSON Class Body Handler for the given JSONClass
      Parameters:
      clazz - The JSONClass class to convert the response into
  • Method Details