Create a gist now

Instantly share code, notes, and snippets.

Embed
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