java.lang.Object
org.palladiosimulator.protocom.framework.java.ee.protocol.Response
org.palladiosimulator.protocom.framework.java.ee.protocol.JsonResponse

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

    • 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 Details

    • 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