<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.6.4">
</HEAD>
<BODY>
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">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">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">http://www.server.com/car</A>&quot; URL, shouldn't it be &quot;<A HREF="http://www.server.com/cars">http://www.server.com/cars</A>&quot; (plural)?&nbsp;<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;&nbsp;Pipe&lt;Car&gt; pipe = new RestAdapter&lt;pipe&gt;(Car.class, new URL(&quot;<A HREF="http://www.server.com/">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">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't know the android details implementation but if we define the URL like and we call a read after that like&nbsp;pipe.read() won't we end up with an url like that &nbsp;<B><A HREF="http://www.server.com/car">http://www.server.com/car</A>/car ? &nbsp;</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>
I think that when using the RestAdapter constructor, the Entity name is not added to the URL. I'm pretty sure at least for the pipe.remove method.<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>
    &nbsp;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <BLOCKQUOTE>
            <BR>
            <BLOCKQUOTE TYPE=CITE>
                <BR>
                Thanks!<BR>
                Matthias<BR>
                <BR>
                <BR>
                <BR>
                <BR>
                [1]&nbsp;<A HREF="http://aerogear.org/docs/guides/aerogear-android/AerogearAndroidPipes101/">aerogear.org/docs/guides/aerogear-android/AerogearAndroidPipes101/</A><BR>
                <BR>
                <BR>
<PRE>
_______________________________________________
aerogear-dev mailing list
<A HREF="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</A>
<A HREF="https://lists.jboss.org/mailman/listinfo/aerogear-dev">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">aerogear-dev@lists.jboss.org</A><BR>
            <A HREF="https://lists.jboss.org/mailman/listinfo/aerogear-dev">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">aerogear-dev@lists.jboss.org</A><BR>
        <A HREF="https://lists.jboss.org/mailman/listinfo/aerogear-dev">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/">http://matthiaswessendorf.wordpress.com/</A><BR>
    sessions: <A HREF="http://www.slideshare.net/mwessendorf">http://www.slideshare.net/mwessendorf</A><BR>
    twitter: <A HREF="http://twitter.com/mwessendorf">http://twitter.com/mwessendorf</A>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<PRE>
_______________________________________________
aerogear-dev mailing list
<A HREF="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</A>
<A HREF="https://lists.jboss.org/mailman/listinfo/aerogear-dev">https://lists.jboss.org/mailman/listinfo/aerogear-dev</A>
</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>