[aerogear-dev] Integrate custom route into "aerogear-android"

tomlux tom at schuller.lu
Wed Apr 10 16:41:22 EDT 2013


Hy,
I got it working with "setLinkUri" method.
The where method was producing a non-working url.

I will check it deeper to provide further details.

Thanks for any help,
 Tom


On Wed, Apr 10, 2013 at 2:23 PM, Summers Pittman [via aerogear-dev] <
ml-node+s1069024n2243h60 at n5.nabble.com> wrote:

> Tom,
>
> Good morning!  Here is a gist which describes briefly what you are
> wanting to do.  I broke it down to demonstrate using both /$username and
> a query parameter.
>
> https://gist.github.com/secondsun/66c141f026c3a83191f2
>
> *ReadFilter* has two methods to help you with this, `setLinkUri` and
> `setWhere`.
>
>   `setLinkUri` consumes a *URI* which will be appended to the end of
> your query.
> `setWhere` consumes a *JSONObject* which provides your query parameters.
>
> *ReadFilter* is gracious enough to flatten out the *JSONObject* when it
> makes the query.  IE {"parent":{"childId":1}} becomes ?parent.childId=1.
>
> Hope this helps!
>
> Summers
>
> On 04/10/2013 12:56 AM, tomlux wrote:
>
> > Hy,
> > I created a custom route (non CRUD) in my aerogear facade.
> >
> >
> > Using curl, I'm getting the expected results:
> >
> >
> > What is the easiest way to consume this route in "aerogear-android"?
> > As far as I understand, the pipe concept is just valid for the
> predefined
> > CRUD routes.
> >
> > I also tried to solve my problem with "ReadFilter.setWhere", but I don't
> > know how I can/should configure this in the controller. The url was
> > correctly build, but the where condition wasn't repectet.
> >
> > Thanks,
> >   Tom
> >
> >
> >
> > --
> > View this message in context:
> http://aerogear-dev.1069024.n5.nabble.com/Integrate-custom-route-into-aerogear-android-tp2230.html
> > Sent from the aerogear-dev mailing list archive at Nabble.com.
> > _______________________________________________
> > aerogear-dev mailing list
> > [hidden email] <http://user/SendEmail.jtp?type=node&node=2243&i=0>
> > https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
> _______________________________________________
> aerogear-dev mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=2243&i=1>
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://aerogear-dev.1069024.n5.nabble.com/Integrate-custom-route-into-aerogear-android-tp2230p2243.html
>  To unsubscribe from Integrate custom route into "aerogear-android", click
> here<http://aerogear-dev.1069024.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2230&code=dG9tQHNjaHVsbGVyLmx1fDIyMzB8NDA0NTQ1Njkz>
> .
> NAML<http://aerogear-dev.1069024.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://aerogear-dev.1069024.n5.nabble.com/Integrate-custom-route-into-aerogear-android-tp2230p2259.html
Sent from the aerogear-dev mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20130410/021fe95d/attachment-0001.html 


More information about the aerogear-dev mailing list