<!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 10:09 +0200, Matthias Wessendorf wrote:
<BLOCKQUOTE TYPE=CITE>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    On Mon, Jun 3, 2013 at 10:01 AM, Apostolos Emmanouilidis &lt;<A HREF="mailto:aemmanou@redhat.com">aemmanou@redhat.com</A>&gt; wrote:
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        On Mon, 2013-06-03 at 09:54 +0200, Matthias Wessendorf wrote: <BR>
        <BLOCKQUOTE TYPE=CITE>
            <BR>
            <BR>
            <BR>
            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:<BR>
            <BLOCKQUOTE>
                <BR>
                <BR>
                <BR>
                On Sat, Jun 1, 2013 at 3:56 PM, Apostolos Emmanouilidis &lt;<A HREF="mailto:aemmanou@redhat.com">aemmanou@redhat.com</A>&gt; wrote: <BR>
                <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>
                    I agree that it should be plural <BR>
                    <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>
                    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>
                <BR>
                <BR>
                <BR>
                <BR>
                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> <BR>
            </BLOCKQUOTE>
            <BR>
            <BR>
            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>
        <BR>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        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.
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    The pipe should be created by using Pipeline.pipe()&nbsp;&nbsp; - not dircetly accessing the RestAdapter (impl details)<BR>
</BLOCKQUOTE>
<BR>
I was referring to the current documentation as is. I agree that Pipeline.pipe should be used instead of direct accessing the RestAdapter. Daniel Passos informed me about that in a relevant JIRA. <BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
    &nbsp;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <BR>
        <BR>
        <BLOCKQUOTE TYPE=CITE>
            <BR>
            <BR>
            <BR>
            <BR>
            -Matthias<BR>
            <BR>
            <BR>
            <BR>
            <BR>
            <BR>
            <BR>
            &nbsp;<BR>
            <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>
                    <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> <BR>
                </BLOCKQUOTE>
                <BR>
                <BR>
                <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> <BR>
            </BLOCKQUOTE>
            <BR>
            <BR>
            <BR>
            <BR>
            -- <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>
<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 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>