artiya4u / google-http-java-client

Automatically exported from code.google.com/p/google-http-java-client
0 stars 0 forks source link

Add StreamingContent interface #184

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
External references, such as a standards document, or specification?

http://javadoc.google-http-java-client.googlecode.com/hg/1.12.0-beta/com/google/
api/client/http/HttpContent.html#writeTo(java.io.OutputStream)

Java environments (e.g. Java 6, Android 2.3, App Engine, or All)?

All

Please describe the feature requested.

Extract the writeTo(OutputStream) method from HttpContent into a separate 
interface WriteToOutputStream which can go in the util package.  Then, decouple 
LowLevelHttpRequest from HttpContent and add getContentLength(), 
getContentType(), getContentEncoding(), and getWriteToOutputStream() methods to 
it.  That will simplify the implementation of classes that extend 
LowLevelHttpRequest.  More importantly, it gives us more flexibility by 
decoupling the interface that HttpRequest uses and the interface that 
LowLevelHttpRequest uses.

Original issue reported on code.google.com by yan...@google.com on 21 Dec 2012 at 2:10

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 21 Dec 2012 at 4:17

GoogleCodeExporter commented 9 years ago
https://codereview.appspot.com/6999046

Original comment by yan...@google.com on 21 Dec 2012 at 4:18

GoogleCodeExporter commented 9 years ago
https://codereview.appspot.com/6999046/

Original comment by yan...@google.com on 27 Dec 2012 at 5:38

GoogleCodeExporter commented 9 years ago
ooo, would really like this for my current project. any target date set for 
1.14?

Original comment by yincrash on 23 Jan 2013 at 5:36

GoogleCodeExporter commented 9 years ago
in about 3 weeks

Original comment by yan...@google.com on 23 Jan 2013 at 11:26