Closed GoogleCodeExporter closed 9 years ago
early proof of concept: http://codereview.appspot.com/6209053/
Original comment by yan...@google.com
on 11 May 2012 at 2:41
Actually Ravi, can you take this please? I think Matthias is proposing to add
something else to HttpParser, so we should probably merge his work into
HttpParser2 also.
Note: we need TypeToken which unfortunately is part of Guava 12, which is not
Java 5 compatible. So we're stuck in a position of either forking Guava to a
Java 5 compatible build (big project), OR writing our own light-weight
TypeToken implementation as part of google-http-client (easy).
Original comment by yan...@google.com
on 11 May 2012 at 3:02
Original comment by mlin...@google.com
on 23 May 2012 at 3:18
Original comment by mlin...@google.com
on 5 Jun 2012 at 8:51
Explanation for the InputStream/Reader benefit of this: HttpParser requires
HttpResponse, whereas ObjectParser takes an InputStream or Reader. That makes
it more generally useful. In particular, google-api-java-client is able to
take advantage of this to implement parsing of batches of responses in a
multipart response, and also for parsing push notifications.
Original comment by yan...@google.com
on 17 Aug 2012 at 11:52
Original issue reported on code.google.com by
yan...@google.com
on 11 May 2012 at 2:38