<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">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 class="moz-txt-link-freetext" href="https://gist.github.com/secondsun/5fa7ddd46c76b03b723e">https://gist.github.com/secondsun/5fa7ddd46c76b03b723e</a><br>
<br>
And a comparison for discussion:<br>
<br>
<a class="moz-txt-link-freetext" href="https://github.com/aerogear/aerogear-android/compare/multipart">https://github.com/aerogear/aerogear-android/compare/multipart</a><br>
<br>
On 05/10/2013 03:38 PM, Summers Pittman wrote:<br>
</div>
<blockquote cite="mid:518D4CC4.7070406@redhat.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<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
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
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 class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
aerogear-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/aerogear-dev">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></pre>
</blockquote>
<br>
</body>
</html>