Class JsonResponse
- 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 Summary
Constructors Constructor Description JsonResponse()
Constructs a new JsonResponse object.JsonResponse(String payload)
Constructs a new JsonResponse object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPayload()
Gets the payload of the response.void
setPayload(String payload)
Sets the payload of the response.
-
-
-
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
-
-