Skip to content

Instantly share code, notes, and snippets.

@frogermcs
Created January 25, 2017 16:34
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 frogermcs/a1f6e8ec608a1f4078a241d54c1b7812 to your computer and use it in GitHub Desktop.
Save frogermcs/a1f6e8ec608a1f4078a241d54c1b7812 to your computer and use it in GitHub Desktop.
public class AppEngineResponseHandler implements ResponseHandler {
//...
@Override
public void onResponse(RootResponse rootResponse) {
try {
gson.toJson(rootResponse, httpServletResponse.getWriter());
} catch (IOException e) {
e.printStackTrace();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment