Class JsonResponse


  • public class JsonResponse
    extends Response
    A JsonResponse object represents an HTTP response with a JSON payload.
    • Constructor Detail

      • JsonResponse

        public JsonResponse()
        Constructs a new JsonResponse object.
      • JsonResponse

        public JsonResponse​(String payload)
        Constructs a new JsonResponse object.
        Parameters:
        payload - the payload of the response
    • Method Detail

      • getPayload

        public String getPayload()
        Gets the payload of the response.
        Returns:
        the payload of the response
      • setPayload

        public void setPayload​(String payload)
        Sets the payload of the response.
        Parameters:
        payload - the payload of the response