qbit
qbit copied to clipboard
JsendResponse as default Response Builder
Is there a global place to support JsendResponse for all the response ? Right now, I can set it in Response Decorator
That was part of the plan, but never implemented.
We do support JSendResponse as a response type.
@RequestMapping(value = "/helloj7", code = 221)
public void helloJSend7(Callback<JSendResponse<List<String>>> callback) {
callback.returnThis(JSendResponseBuilder.jSendResponseBuilder(Lists.list(
"hello " + System.currentTimeMillis())).build());
}
Not yet.