Skip to content

Instantly share code, notes, and snippets.

@RichardHightower
Created August 26, 2015 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RichardHightower/36825eb81fb21c05bc41 to your computer and use it in GitHub Desktop.
Save RichardHightower/36825eb81fb21c05bc41 to your computer and use it in GitHub Desktop.
http response
@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