Package google.registry.request
Class JsonResponse
java.lang.Object
google.registry.request.JsonResponse
JSON response object.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setDateHeader
(String header, org.joda.time.DateTime timestamp) Sets the date header.void
Sets the header.void
setPayload
(Map<String, ?> responseMap) Writes the JSON map to the HTTP payload; call this exactly once.void
setStatus
(int status) Sets the status.
-
Field Details
-
JSON_SAFETY_PREFIX
String prefixed to all JSON-like responses to breakeval()
.- See Also:
-
response
-
-
Constructor Details
-
JsonResponse
-
-
Method Details
-
setStatus
public void setStatus(int status) Sets the status.- See Also:
-
setPayload
Writes the JSON map to the HTTP payload; call this exactly once. -
setHeader
Sets the header.- See Also:
-
setDateHeader
Sets the date header.see Response#setDateHeader
-