public class RenderJson extends Result
Constructor and Description |
---|
RenderJson(java.lang.Object response) |
RenderJson(java.lang.Object response,
com.google.gson.Gson gson) |
RenderJson(java.lang.Object response,
com.google.gson.JsonSerializer<?>... adapters) |
RenderJson(java.lang.Object response,
java.lang.reflect.Type type) |
RenderJson(java.lang.String jsonString) |
Modifier and Type | Method and Description |
---|---|
void |
apply(Http.Request request,
Http.Response response) |
java.lang.String |
getJson() |
java.lang.Object |
getResponse() |
getEncoding, setContentTypeIfNotSet
fillInStackTrace
public RenderJson(java.lang.Object response)
public RenderJson(java.lang.Object response, java.lang.reflect.Type type)
public RenderJson(java.lang.Object response, com.google.gson.JsonSerializer<?>... adapters)
public RenderJson(java.lang.String jsonString)
public RenderJson(java.lang.Object response, com.google.gson.Gson gson)
public void apply(Http.Request request, Http.Response response)
public java.lang.String getJson()
public java.lang.Object getResponse()
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly