Class JsonResponse
java.lang.Object
org.palladiosimulator.protocom.framework.java.ee.protocol.Response
org.palladiosimulator.protocom.framework.java.ee.protocol.JsonResponse
A JsonResponse object represents an HTTP response with a JSON payload.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructs a new JsonResponse object.JsonResponse
(String payload) Constructs a new JsonResponse object. -
Method Summary
Modifier and TypeMethodDescriptionGets the payload of the response.void
setPayload
(String payload) Sets the payload of the response.
-
Constructor Details
-
JsonResponse
public JsonResponse()Constructs a new JsonResponse object. -
JsonResponse
Constructs a new JsonResponse object.- Parameters:
payload
- the payload of the response
-
-
Method Details
-
getPayload
Gets the payload of the response.- Returns:
- the payload of the response
-
setPayload
Sets the payload of the response.- Parameters:
payload
- the payload of the response
-