public class JsonResponse extends ActionResponse
| Constructor and Description |
|---|
JsonResponse(ActionResponse wrappedResponse) |
| Modifier and Type | Method and Description |
|---|---|
JsonResponse |
sendObject(Object object)
Sends an object in the response.
|
static String |
toJson(Object obj) |
addCookie, addCookie, addHeader, getRequest, getWrappedResponse, removeCookie, removeCookie, sendPermanentRedirect, sendTemporaryRedirect, setHeader, setStatusgetServletRequest, getServletResponsepublic JsonResponse(ActionResponse wrappedResponse)
public final JsonResponse sendObject(Object object) throws IOException
object - object to be serialized.IOException - if an I/O error happened during the process.Copyright © 2017 Agapsys Tecnologia Ltda-ME. All rights reserved.