Class UiApiResponse

java.lang.Object
com.kingsrook.qqq.middleware.javalin.specs.invoke.UiApiResponse

public class UiApiResponse extends Object
The result of an in-process UI API call: exactly what an HTTP client of the UI API would have received.
  • Constructor Details

  • Method Details

    • isSuccess

      public boolean isSuccess()
      Whether the status is 2xx.
    • getJson

      public com.fasterxml.jackson.databind.JsonNode getJson() throws com.fasterxml.jackson.core.JsonProcessingException
      The body parsed as JSON (null for an empty body).
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • getStatus

      public int getStatus()
      Getter for status
    • getHeaders

      public Map<String,List<String>> getHeaders()
      Getter for headers
    • getBody

      public String getBody()
      Getter for body