<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi, <div><br></div><div>can I propose to start a page that lists how Android multipart upload will look like (e.g. with MultipartRequestBuilder). I would like to have a view first and will go ahead and add iOS for comparison.</div><div><br></div><div>Also a question i have for this is monitoring the progress of uploading. In iOS you can specify a block to be executed during the uploading that reports periodically the bytes uploaded etc so we can easily hook a user defined block. How we will approach this?</div><div><br></div><div>Thanks</div><div>Christos</div><div><br></div><div><br></div><div> <br><div><div>On May 16, 2013, at 4:51 PM, Daniel Passos <<a href="mailto:daniel@passos.me">daniel@passos.me</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">+1 to <span style="font-family:arial,sans-serif;font-size:13px">PipeConfig.setGsonBuilder will become deprecated</span><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style="">
<span style="font-family:arial,sans-serif;font-size:13px">Comments on commits</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 15, 2013 at 1:39 PM, Summers Pittman <span dir="ltr"><<a href="mailto:supittma@redhat.com" target="_blank">supittma@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>Here is a before/after gist for the
things I will need to change to put in the Builders I was
referring too.<br>
<br>
<a href="https://gist.github.com/secondsun/5fa7ddd46c76b03b723e" target="_blank">https://gist.github.com/secondsun/5fa7ddd46c76b03b723e</a><br>
<br>
And a comparison for discussion:<br>
<br>
<a href="https://github.com/aerogear/aerogear-android/compare/multipart" target="_blank">https://github.com/aerogear/aerogear-android/compare/multipart</a><div><div class="h5"><br>
<br>
On 05/10/2013 03:38 PM, Summers Pittman wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">
<br>
First a few caveats:<br>
<br>
1. There is no server side implementation / spec yet so the
client "solution" should be rather pluggable.<br>
2. I've only looked at iOS as a sanity check on my ideas.<br>
<br>
I've been working on some PoC's for multipart on Android. After a
few false starts here is the idea I've come up with to support
multipart/from-data content types (ie uploading files).<br>
<br>
Add a new configuration option to a Pipe's configuration: a
request builder.<br>
<br>
The request builder will be a callback/closure/class that consumes
the data arguments from a pipes save request and produces the body
of the request. In Android it can be an interface which is
implemented and in iOS it can be a block which is passed to
AFHttpClient's
multipartFormRequestWithMethod. I'm not sure what the
implications to JavaScript would be.<br>
<br>
Specifically in Android the gson specific request code will be
refactored into a GSONRequestBuilder, and we will write (and
define the behavior of) a MultipartRequestBuilder. Also
PipeConfig.setGsonBuilder will become deprecated (a good move
IMHO).<br>
<br>
wdyt?<br>
<br>
Summers<br>
<br>
<br>
<br>
<fieldset></fieldset>
<br>
</div></div><div class="im"><pre>_______________________________________________
aerogear-dev mailing list
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></pre>
</div></blockquote>
<br>
</div>
<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br></div>
_______________________________________________<br>aerogear-dev mailing list<br><a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/aerogear-dev</blockquote></div><br></div></body></html>