<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 3, 2013 at 9:48 AM, Sebastien Blanc <span dir="ltr"><<a href="mailto:scm.blanc@gmail.com" target="_blank">scm.blanc@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">On Sat, Jun 1, 2013 at 3:56 PM, Apostolos Emmanouilidis <span dir="ltr"><<a href="mailto:aemmanou@redhat.com" target="_blank">aemmanou@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><u></u>
<div><div>
<br>
On Sat, 2013-06-01 at 11:45 +0200, Matthias Wessendorf wrote:
<blockquote type="CITE">
Hi,
</blockquote>
<blockquote type="CITE">
<br>
<br>
</blockquote>
<blockquote type="CITE">
reading [1], I have two questions:
</blockquote>
<blockquote type="CITE">
<br>
<br>
</blockquote>
<blockquote type="CITE">
* the "<a href="http://www.server.com/car" target="_blank">http://www.server.com/car</a>" URL, shouldn't it be "<a href="http://www.server.com/cars" target="_blank">http://www.server.com/cars</a>" (plural)?
</blockquote>
<blockquote type="CITE">
==> and the later mentioned HTTP methods, e.g. "GET:/car" ==> "GET:/cars"?<br>
</blockquote>
<br></div>
I agree that it should be plural<div><br>
<br>
<blockquote type="CITE">
<br>
<br>
</blockquote>
<blockquote type="CITE">
* Do we really promote the direct access to the RestAdapter, instead of via the Pipeline ?
</blockquote>
<blockquote type="CITE">
==> Pipe<Car> pipe = new RestAdapter<pipe>(Car.class, new URL("<a href="http://www.server.com/" target="_blank">http://www.server.com/</a>"));
</blockquote>
<blockquote type="CITE">
<br>
</blockquote>
<br></div>
Except that, maybe this line should change to Pipe<Car> pipe = new RestAdapter<<b>Car</b>>(Car.class, new URL("<b><a href="http://www.server.com/car" target="_blank">http://www.server.com/car</a></b>")); in order to match the URLs of the described web service. <br>
</div></blockquote><div><br></div><div><br></div></div><div>I don't know the android details implementation but if we define the URL like and we call a read after that like <span style="background-color:transparent;color:inherit;font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:12px;line-height:18px;white-space:pre-wrap">pipe.read() won't we end up with an url like that </span> <b><a href="http://www.server.com/car" target="_blank">http://www.server.com/car</a>/car ? </b></div>
</div></div></div></blockquote><div><br></div><div style>yeah, that statement was wrong. I was more concerned, promoting "impl details (RestAdapter) instead of using "public" API: pipeline.pipe(.....);</div>
<div style><br></div><div style><br></div><div style>-Matthias</div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class="im">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>
<br>
<blockquote type="CITE">
<br>
</blockquote>
<blockquote type="CITE">
Thanks!
</blockquote>
<blockquote type="CITE">
Matthias
</blockquote>
<blockquote type="CITE">
<br>
<br>
</blockquote>
<blockquote type="CITE">
<br>
<br>
</blockquote>
<blockquote type="CITE">
[1] <a href="http://aerogear.org/docs/guides/aerogear-android/AerogearAndroidPipes101/" target="_blank">aerogear.org/docs/guides/aerogear-android/AerogearAndroidPipes101/</a>
</blockquote>
<blockquote type="CITE">
<br>
<br>
</blockquote>
<blockquote type="CITE">
<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>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">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></div><br></div></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><br clear="all"><div><br></div>-- <br>Matthias Wessendorf <br>
<br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div></div>