Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JsendResponse as default Response Builder #603

Open
SagarN opened this issue Dec 23, 2015 · 2 comments
Open

JsendResponse as default Response Builder #603

SagarN opened this issue Dec 23, 2015 · 2 comments

Comments

@SagarN
Copy link

SagarN commented Dec 23, 2015

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

@SagarN SagarN changed the title JsendResponse while sending invalid response JsendResponse as default Response Builder Dec 23, 2015
@RichardHightower
Copy link
Member

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
Copy link
Member

Not yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants