<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 3, 2013 at 10:01 AM, Apostolos Emmanouilidis <span dir="ltr">&lt;<a href="mailto:aemmanou@redhat.com" target="_blank">aemmanou@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>


  
  

<div><div class="im">
On Mon, 2013-06-03 at 09:54 +0200, Matthias Wessendorf wrote:
<blockquote type="CITE">
    <br>
</blockquote>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
    On Mon, Jun 3, 2013 at 9:48 AM, Sebastien Blanc &lt;<a href="mailto:scm.blanc@gmail.com" target="_blank">scm.blanc@gmail.com</a>&gt; wrote:
</blockquote>
<blockquote type="CITE">
    <blockquote>
        <br>
    </blockquote>
</blockquote>
<blockquote type="CITE">
    <blockquote>
        <br>
        <br>
    </blockquote>
</blockquote>
<blockquote type="CITE">
    <blockquote>
        On Sat, Jun 1, 2013 at 3:56 PM, Apostolos Emmanouilidis &lt;<a href="mailto:aemmanou@redhat.com" target="_blank">aemmanou@redhat.com</a>&gt; wrote:
    </blockquote>
</blockquote>
<blockquote type="CITE">
    <blockquote>
        <blockquote>
            <br>
            On Sat, 2013-06-01 at 11:45 +0200, Matthias Wessendorf wrote: <br>
            <blockquote type="CITE">
                Hi,<br>
                <br>
                <br>
                reading [1], I have two questions:<br>
                <br>
                <br>
                * the &quot;<a href="http://www.server.com/car" target="_blank">http://www.server.com/car</a>&quot; URL, shouldn&#39;t it be &quot;<a href="http://www.server.com/cars" target="_blank">http://www.server.com/cars</a>&quot; (plural)? <br>

                ==&gt; and the later mentioned HTTP methods, e.g. &quot;GET:/car&quot; ==&gt; &quot;GET:/cars&quot;?<br>
            </blockquote>
            <br>
            <br>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote type="CITE">
    <blockquote>
        <blockquote>
            I agree that it should be plural
        </blockquote>
    </blockquote>
</blockquote>
<blockquote type="CITE">
    <blockquote>
        <blockquote>
            <br>
            <br>
            <blockquote type="CITE">
                <br>
                <br>
                * Do we really promote the direct access to the RestAdapter, instead of via the Pipeline ?<br>
                ==&gt; Pipe&lt;Car&gt; pipe = new RestAdapter&lt;pipe&gt;(Car.class, new URL(&quot;<a href="http://www.server.com/" target="_blank">http://www.server.com/</a>&quot;));<br>
                <br>
            </blockquote>
            <br>
            <br>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote type="CITE">
    <blockquote>
        <blockquote>
            Except that, maybe this line should change to Pipe&lt;Car&gt; pipe = new RestAdapter&lt;<b>Car</b>&gt;(Car.class, new URL(&quot;<b><a href="http://www.server.com/car" target="_blank">http://www.server.com/car</a></b>&quot;)); in order to match the URLs of the described web service. <br>

            <br>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote type="CITE">
    <blockquote>
        <br>
        <br>
    </blockquote>
</blockquote>
<blockquote type="CITE">
    <blockquote>
        <br>
        <br>
    </blockquote>
</blockquote>
<blockquote type="CITE">
    <blockquote>
        I don&#39;t know the android details implementation but if we define the URL like and we call a read after that like pipe.read() won&#39;t we end up with an url like that  <b><a href="http://www.server.com/car" target="_blank">http://www.server.com/car</a>/car ?  </b>
    </blockquote>
</blockquote>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
    yeah, that statement was wrong. I was more concerned, promoting &quot;impl details (RestAdapter) instead of using &quot;public&quot; API: pipeline.pipe(.....);<br>
</blockquote>
<br>
<br></div>
I think that when using the RestAdapter constructor, the Entity name is not added to the URL. I&#39;m pretty sure at least for the pipe.remove method.</div></blockquote><div><br></div><div><br></div><div style>The pipe should be created by using Pipeline.pipe()   - not dircetly accessing the RestAdapter (impl details)</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div class="h5"><br>
<br>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
    -Matthias
</blockquote>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
     
</blockquote>
<blockquote type="CITE">
    <blockquote>
        <blockquote>
            <br>
            <blockquote type="CITE">
                <br>
                Thanks!<br>
                Matthias<br>
                <br>
                <br>
                <br>
                <br>
                [1] <a href="http://aerogear.org/docs/guides/aerogear-android/AerogearAndroidPipes101/" target="_blank">aerogear.org/docs/guides/aerogear-android/AerogearAndroidPipes101/</a><br>
                <br>
                <br>
<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>
            <br>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote type="CITE">
    <blockquote>
        <blockquote>
            <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>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote type="CITE">
    <blockquote>
        <br>
        <br>
    </blockquote>
</blockquote>
<blockquote type="CITE">
    <blockquote>
        <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>
    </blockquote>
</blockquote>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
    -- <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>
</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></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>