Re: Serve static content using SpringBeanRouter?

2014-06-04 Thread Jerome Louvel
Thanks Jorge for the follow-up with your solution! I'm not sure why you get two GET calls. Can you try with a regular HTTP client such as POSTMAN? Jérôme On Fri, May 30, 2014 at 9:00 AM, Jorge Gallardo jorgeagalla...@gmail.com wrote: Thanks Jerome for the prompt reply. So after I got some

Re: Serve static content using SpringBeanRouter?

2014-05-30 Thread Jorge Gallardo
Thanks Jerome for the prompt reply. So after I got some rest I could address this with a clearer mind. I resolved it this way: *spring xml:* bean id=restletComponent class=org.restlet.ext.spring.SpringComponent !-- the defaultTarget for this component is our Restlet Application -- property

Re: Serve static content using SpringBeanRouter?

2014-05-29 Thread Jerome Louvel
Hi Jorge, Normally, you shouldn't embed a Directory inside a ServerResource but directly attach it to your SpringBeanRouter. To not have to use the {imageId} path variable (for your file names I guess), you can set the route's matchingMode to Template.STARTS_WITH. I'm not sure exactly how to do