camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Anstey <jans...@gmail.com>
Subject Re: restlet usage / process
Date Mon, 02 Feb 2009 20:15:13 GMT
The latest 2.0-SNAPSHOT should contain the fix since its dated Feb 1

http://people.apache.org/maven-snapshot-repository/org/apache/camel/apache-camel/2.0-SNAPSHOT/apache-camel-2.0-20090201.110840-21.zip

On Mon, Feb 2, 2009 at 3:32 PM, nojonojo <n0_j0@yahoo.com> wrote:

>
>
> I see that http://issues.apache.org/activemq/browse/CAMEL-1284 was created
> and fixed as a response to this issue.  I have a process question - when
> will the 2.0-SNAPSHOT downloads contain this fix?  (Preferable to compiling
> it myself, though that wouldn't be that big of a deal).
>
> Thanks.
>
> Nolan
>
>
> nojonojo wrote:
> >
> >
> > Okay, next question on usage of the restlet component.
> >
> > I'm trying to POST a new resource via a rest call.  My route looks
> > something like:
> >
> > from("restlet:http://localhost:8080/users/{username}?restletMethod=POST<http://localhost:8080/users/%7Busername%7D?restletMethod=POST>
> ").process(new
> > SetUserProcessor());
> >
> > Where SetUserProcessor might do some processing.
> >
> > I'm POSTing a request with a url like http://localhost:8080/users/homer,
> > and the body is a JSON-encoded String.  I'll worry about processing the
> > JSON later - right now, that's just some payload representing a user.
>  The
> > process method in the processor is being invoked appropriately, and the
> > username header is populated properly in the input.  However, the body of
> > the Message is empty by the time it makes it to the processor.  The data
> > that I have in the body is nowhere to be seen, as far as I can tell.
> >
> > Name-value pairs in the POST body do appear in the headers, it's just
> that
> > when there's a block of data (as you'd do in a POST or a PUT using REST),
> > it doesn't come through.
> >
>
> --
> View this message in context:
> http://www.nabble.com/restlet-usage-tp21572086s22882p21796020.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>


-- 
Cheers,
Jon

http://janstey.blogspot.com/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message