Class RequestBodyConverter

java.lang.Object
com.djrapitops.plan.delivery.webserver.RequestBodyConverter

public class RequestBodyConverter extends Object
  • Method Details

    • formBody

      public static URIQuery formBody(Request request)
      Get the body of a request as an url-encoded form.
      Returns:
      URIQuery.
    • bodyJson

      public static <T> T bodyJson(Request request, com.google.gson.Gson gson, Class<T> ofType)
    • bodyJson

      public static <T> T bodyJson(Request request, com.google.gson.Gson gson, com.google.gson.reflect.TypeToken<T> ofType)