Created
August 26, 2015 20:03
-
-
Save RichardHightower/36825eb81fb21c05bc41 to your computer and use it in GitHub Desktop.
http response
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RequestMapping("/returnEmployeeCallback2") | |
public void returnEmployeeWithCallback2(Callback<HttpTextResponse> employeeCallback) { | |
HttpTextResponse response = (HttpTextResponse) HttpResponseBuilder.httpResponseBuilder() | |
.setBody("" + new Employee(1, "Rick")) | |
.setContentType("crap/crap").setCode(777).build(); | |
employeeCallback.returnThis(response); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment