[aerogear-dev] Fwd: AeroGear Pipe

Summers Pittman supittma at redhat.com
Fri Jun 19 10:05:19 EDT 2015


You can also implement a PIpeHandler (like RestRunner) and supply your own
save implementation.

 *
https://github.com/aerogear/aerogear-android-pipe/blob/master/aerogear-android-pipe/src/main/java/org/jboss/aerogear/android/pipe/rest/RestRunner.java

You will set when you set up your pipe with the Configuration Object.

PipeManager.config("developers", RestfulPipeConfiguration.class)
           .pipeHandler(new MySpecifalHandler())
           .withUrl(new URL("http://www.server.com/developer"))
           .forClass(Developer.class);

On Fri, Jun 19, 2015 at 9:24 AM, Daniel Passos <dpassos at redhat.com> wrote:

> Hi Autur,
>
> For now, the only way to use HTTP put is saving[1] an object with id,
> because that is the common use for PUT, update a *specific* resource.
>
>
> https://github.com/aerogear/aerogear-android-pipe/blob/master/aerogear-android-pipe/src/main/java/org/jboss/aerogear/android/pipe/rest/RestRunner.java#L306-L317
>
> --
> -- Passos
>
> On Fri, Jun 19, 2015 at 6:36 AM, Artur Dryomov <artur.dryomov at gmail.com>
> wrote:
>
>> Hi,
>>
>> I need to perform a HTTP PUT request using the Hawkular API.
>> Documentation
>> <http://www.hawkular.org/docs/rest/rest-alerts.html#_alert_handling> and
>> example <http://pastie.org/private/fw02g8us6g20esc7dczng>. I. e. I need
>> to send PUT request with some URL query. What is the best way to achieve
>> that using AeroGear? Should I use HTTP client instead of AeroGear? I
>> haven’t found any related APIs in the documentation.
>>
>> Artur.
>>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20150619/3f8c960c/attachment.html 


More information about the aerogear-dev mailing list