[aerogear-dev] Multipart client thoughts

Matthias Wessendorf matzew at apache.org
Mon May 13 03:04:20 EDT 2013


sounds good so far!


On Fri, May 10, 2013 at 9:38 PM, Summers Pittman <supittma at redhat.com>wrote:

>
> First a few caveats:
>
> 1.  There is no server side implementation / spec yet so the client
> "solution" should be rather pluggable.
>

yeah, nothing in Controller, but anything that supports multipart/upload
(e.g. JAX-RS/RestEasy) should be able to consume the uploaded files;



> 2.  I've only looked at iOS as a sanity check on my ideas.
>
> 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).
>
> Add a new configuration option to a Pipe's configuration: a request
> builder.
>
> 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.
>
> 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).
>
> wdyt?
>
> Summers
>
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20130513/4430c7c2/attachment.html 


More information about the aerogear-dev mailing list