qbit icon indicating copy to clipboard operation
qbit copied to clipboard

JsendResponse as default Response Builder

Open SagarN opened this issue 9 years ago • 2 comments

Is there a global place to support JsendResponse for all the response ? Right now, I can set it in Response Decorator

SagarN avatar Dec 23 '15 02:12 SagarN

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());
    }

RichardHightower avatar Dec 28 '15 20:12 RichardHightower

Not yet.

RichardHightower avatar Jan 13 '16 23:01 RichardHightower