Re: [cocoon3] @Context Request request

2011-10-31 Thread Steven Dolg
Am 30.10.2011 18:35, schrieb Andre Juffer: Hi, for processing a multipart/form-data request holding image data, I intend to use the commons imageupload [1]. In order to do so, I need to get access to the javax.servlet.http.HttpServletRequest object inside a REST resource. The @Context

Re: [cocoon3] @Context Request request

2011-10-31 Thread Andre Juffer
Steven, thanks for the reply. The purpose of the request is to upload an image file. With commons fileupload this is straightforward, but it requires direct access to HttpServletRequest. I did understand that HttpServletRequest is an interface of course. With commons fileupload, one would

Re: [cocoon3] @Context Request request

2011-10-31 Thread Steven Dolg
Am 31.10.2011 11:29, schrieb Andre Juffer: Steven, thanks for the reply. The purpose of the request is to upload an image file. With commons fileupload this is straightforward, but it requires direct access to HttpServletRequest. I did understand that HttpServletRequest is an interface of

Re: [cocoon3] @Context Request request

2011-10-31 Thread Andre Juffer
Steven, I have a number of REST resources all working just fine. It is just this image upload thing that is not working correctly. I can add to my previous email that I am using dojo 1.6.1 on the client to create the POST request. And, yes, jetty is a common servlet engine and should not

Re: [cocoon3] @Context Request request

2011-10-31 Thread Steven Dolg
Am 31.10.2011 12:00, schrieb Andre Juffer: Steven, I have a number of REST resources all working just fine. It is just this image upload thing that is not working correctly. I can add to my previous email that I am using dojo 1.6.1 on the client to create the POST request. Should have

Re: [cocoon3] @Context Request request

2011-10-31 Thread Andre Juffer
On 10/31/2011 01:17 PM, Steven Dolg wrote: Am 31.10.2011 12:00, schrieb Andre Juffer: Steven, I have a number of REST resources all working just fine. It is just this image upload thing that is not working correctly. I can add to my previous email that I am using dojo 1.6.1 on the client to

Re: [cocoon3] @Context Request request

2011-10-31 Thread Andre Juffer
On 10/31/2011 01:46 PM, Thorsten Scherler wrote: On Sun, 2011-10-30 at 19:35 +0200, Andre Juffer wrote: Hi, for processing a multipart/form-data request holding image data, I intend to use the commons imageupload [1]. In order to do so, I need to get access to the

Re: [cocoon3] @Context Request request

2011-10-31 Thread Thorsten Scherler
On Mon, 2011-10-31 at 14:34 +0200, Andre Juffer wrote: On 10/31/2011 01:46 PM, Thorsten Scherler wrote: On Sun, 2011-10-30 at 19:35 +0200, Andre Juffer wrote: Hi, for processing a multipart/form-data request holding image data, I intend to use the commons imageupload [1]. In order to do

Re: [cocoon3] @Context Request request

2011-10-31 Thread Andre Juffer
OK, this settles it then. @Path(/image) class ImageResource { @POST @Path() public Response uploadImage(@Context HttpServletRequest request) { // Do something with request } } is correct. Thanks, André On 10/31/2011 03:04 PM, Thorsten Scherler wrote: On Mon, 2011-10-31 at