Re: securing Restlet

2008-12-21 Thread Rhett Sutphin
On Dec 20, 2008, at 6:49 PM, Raif S. Naffah wrote: > On Sunday 21 December 2008 09:05:46 Rhett Sutphin wrote: >> On Dec 20, 2008, at 3:34 PM, Raif S. Naffah wrote: >>> hello Stephan, >>> >>> On Sunday 21 December 2008 00:41:48 Stephan Koops wrote: Hi Raif, Another possibility to

how to redirect to another resource?

2008-12-21 Thread renfeng
I couldn't find a method to get the base url of ServerServlet. So it is hardcoded. Any clue how to retrieve it from the runtime environment? Thanks. String baseUrl = "/context-root/restlet-root"; router.attach("res1", new Redirector( getContext(), baseUrl + "res2", Redirector.MODE_CLIENT_S

How to open a writer against the client

2008-12-21 Thread Ido Blutman
Hello Everyone, I have a problem: I need to send as a response to the client a big XML file - can be even more than 30MB. What I need, I suppose, is to open an output writer and send the xml file in chunks (if I try to read it all to the memory I get OutOfMemoryError and even if I will increas

RE: Getting Restlet resources injected with Guice

2008-12-21 Thread AJ Barnes - National Poisons Centre
Hi Brian, I've been using Guice for a while now. Was a bit tough getting started, but now is working quite well. I didn't go down the path of using finders. With our set up we generally have collections of items and then their entities (as is pretty standard). I started by creating an abstrac