Re: HTTP parameter bug (was passing the HTTPServletRequest from Jetty to a SEDA consumer in Spring DSL)

2010-01-26 Thread Willem Jiang
Wayne Keenan wrote: On Mon, Jan 25, 2010 at 4:25 AM, Willem Jiang wrote: Hi Wayne, I'm not sure we need to populate the headers for the HTTP PUT method. Can you point me out if there any specification for it ? Willem I looked at the RFC's for http 1.0 and 1.1, to me it doesn't appear to p

Re: HTTP parameter bug (was passing the HTTPServletRequest from Jetty to a SEDA consumer in Spring DSL)

2010-01-26 Thread Wayne Keenan
On Mon, Jan 25, 2010 at 4:25 AM, Willem Jiang wrote: > Hi Wayne, > > I'm not sure we need to populate the headers for the HTTP PUT method. > Can you point me out if there any specification for it ? > > Willem > > > I looked at the RFC's for http 1.0 and 1.1, to me it doesn't appear to preclude us

Re: HTTP parameter bug (was passing the HTTPServletRequest from Jetty to a SEDA consumer in Spring DSL)

2010-01-24 Thread Willem Jiang
Hi Wayne, I'm not sure we need to populate the headers for the HTTP PUT method. Can you point me out if there any specification for it ? Willem Wayne Keenan wrote: Hi Willem, Thanks very much, I can confirm that with 2.2-SNAPSHOT I can obtain the URI QUERY parameters from the camel header(s)

Re: HTTP parameter bug (was passing the HTTPServletRequest from Jetty to a SEDA consumer in Spring DSL)

2010-01-23 Thread Wayne Keenan
Hi Willem, Thanks very much, I can confirm that with 2.2-SNAPSHOT I can obtain the URI QUERY parameters from the camel header(s) when POSTing content-type of application/octet-stream. I did notice that a HTTP PUT doesn't populate the headers with the URI Query parameter Regards Wayne On Fri, Ja

Re: HTTP parameter bug (was passing the HTTPServletRequest from Jetty to a SEDA consumer in Spring DSL)

2010-01-22 Thread Willem Jiang
Hi Wayne, I commit a patch of CAMEL-2386, please check out the last camel-2.2-SNAPSHOT to verify it :) Willem Willem Jiang wrote: I just did a quick test on camel trunk, you can get the URL parameters by using the exchange.getIn().getHeader(Exchange.HTTP_QUERY) When you post the binary data

Re: HTTP parameter bug (was passing the HTTPServletRequest from Jetty to a SEDA consumer in Spring DSL)

2010-01-21 Thread Willem Jiang
I just did a quick test on camel trunk, you can get the URL parameters by using the exchange.getIn().getHeader(Exchange.HTTP_QUERY) When you post the binary data with URI Query. I just took a look at camel-http and found we could parser the URL parameter for the post method. So I created a JI

Re: HTTP parameter bug (was passing the HTTPServletRequest from Jetty to a SEDA consumer in Spring DSL)

2010-01-21 Thread Wayne Keenan
Hi, Nope, I am POSTing binary data as the body with a content-type of ' application/octet-stream', and am sending additional parameters in the URI Query that are not appearing as Camel headers. Perhaps this is not 'best practice', and the body should be multipart MIME encoded so it can be POST'e

Re: passing the HTTPServletRequest from Jetty to a SEDA consumer in Spring DSL

2010-01-20 Thread Claus Ibsen
On Wed, Jan 20, 2010 at 10:40 AM, Wayne Keenan wrote: > Hi, > > Apologies, I didn't word my previous email very well; what I should have > also mentioned for clarity is that if I do this: > >         >            http://0.0.0.0:8080/endpoint"/> >             >             >                ${id} >

Re: passing the HTTPServletRequest from Jetty to a SEDA consumer in Spring DSL

2010-01-20 Thread Claus Ibsen
Hi Please always write which version of Camel you are using. And others listening in, do that as well. Its important for us to know! On Wed, Jan 20, 2010 at 10:02 AM, Wayne Keenan wrote: > Hi, > > I have a Jetty endpoint that when recieving a message will perform the > processing asynchronously

Re: passing the HTTPServletRequest from Jetty to a SEDA consumer in Spring DSL

2010-01-20 Thread Willem Jiang
Willem Jiang wrote: Wayne Keenan wrote: Hi, Thanks for replying. On Wed, Jan 20, 2010 at 3:28 PM, Willem Jiang wrote: Hi, Can you try to set the ID into the message header instead of the message body ? In this way you can the Request object back :) http://0.0.0.0:80

Re: HTTP parameter bug (was passing the HTTPServletRequest from Jetty to a SEDA consumer in Spring DSL)

2010-01-20 Thread Willem Jiang
Hi, Is your post request using "application/x-www-form-urlencoded" as the content-type ? If so , you should get the parameters from the message header. Willem Wayne Keenan wrote: Hi, I believe I have found the trouble I am having. I think this bug still exists in the 2.1.0 release: http://

Re: passing the HTTPServletRequest from Jetty to a SEDA consumer in Spring DSL

2010-01-20 Thread Willem Jiang
Wayne Keenan wrote: Hi, Thanks for replying. On Wed, Jan 20, 2010 at 3:28 PM, Willem Jiang wrote: Hi, Can you try to set the ID into the message header instead of the message body ? In this way you can the Request object back :) http://0.0.0.0:8080/endpoint"/>

Re: HTTP parameter bug (was passing the HTTPServletRequest from Jetty to a SEDA consumer in Spring DSL)

2010-01-20 Thread Wayne Keenan
Hi, I believe I have found the trouble I am having. I think this bug still exists in the 2.1.0 release: http://issues.apache.org/activemq/browse/CAMEL-1806 The docs says from: http://camel.apache.org/jetty.html says: *Camel also populates all request.parameter and request.headers. For example,

Re: passing the HTTPServletRequest from Jetty to a SEDA consumer in Spring DSL

2010-01-20 Thread Wayne Keenan
Hi, Thanks for replying. On Wed, Jan 20, 2010 at 3:28 PM, Willem Jiang wrote: > Hi, > > Can you try to set the ID into the message header instead of the message > body ? In this way you can the Request object back :) > > > >> > >> http://0.0.0.0:8080/endpoint"/> > >>

Re: passing the HTTPServletRequest from Jetty to a SEDA consumer in Spring DSL

2010-01-20 Thread Willem Jiang
Hi, Can you try to set the ID into the message header instead of the message body ? In this way you can the Request object back :) >> >> http://0.0.0.0:8080/endpoint"/> >> >> >> ${id} >> >> >> >> >>

Re: passing the HTTPServletRequest from Jetty to a SEDA consumer in Spring DSL

2010-01-20 Thread Wayne Keenan
Hi, Apologies, I didn't word my previous email very well; what I should have also mentioned for clarity is that if I do this: http://0.0.0.0:8080/endpoint"/> ${id} The same bean is able to obtain the HTTPServlet

passing the HTTPServletRequest from Jetty to a SEDA consumer in Spring DSL

2010-01-20 Thread Wayne Keenan
Hi, I have a Jetty endpoint that when recieving a message will perform the processing asynchronously and syncronously return a correlationId so the client can come back later to another endpoint to see how processsing is going. I found an example on the mailing list of how to pass the HttpSession