Re: problems using gzip encoding

2007-10-09 Thread Jim Alateras
Okay this is my problem. I was assuming that i would get the wrapped representation once it hits my resource by i get the DecodeRepresentation instance instead. Can I configure my Application so that the wrapped representation is sent to my resource class rather than the DecodeRepresentation?

Re: problems using gzip encoding

2007-10-09 Thread Jerome Louvel
Hi Jim, The Application.decoderService is already able to automatically decode incoming compressed representations. If you prefer to disable this behavior, just do: myApp.getDecoderService().setEnabled(false); before starting the application. Best, Jerome 2007/10/9, Jim Alateras [EMAIL

Issue when using Guard for POST and GET requests

2007-10-09 Thread Patson
Hi all. I have started using restlet since last month and am impressed with the simplicity it offers. However, I bumped into a problem with using Guards earlier and could not figure out a good way to get around it. Basically I have one Restlet TestRestlet that handles both GET and POST requests.

Re: HEAD not well supported?

2007-10-09 Thread Erik Hetzner
At Mon, 8 Oct 2007 17:35:00 + (UTC), Sean Landis [EMAIL PROTECTED] wrote: Regarding my previous comments regarding a test using curl; it appears curl is hung up on the fact that content length has a value and there is no entity. I did determine that Restlet does remove the content. Sorry

Re: Thread-safety in Guard

2007-10-09 Thread Tim Peierls
On 10/9/07, Jerome Louvel [EMAIL PROTECTED] wrote: Good idea, I've entered a RFE for this documentation task: http://restlet.tigris.org/issues/show_bug.cgi?id=369 What's the best way for me (or anyone else) to report other concurrency and documentation issues that I encounter? In this

Re: Index files don't work with Directory and clap://

2007-10-09 Thread Rob Heittman
Nope, this doesn't work: Directory d = new Directory(getContext(), clap: //thread/client-bin); d.setNegotiateContent(false); d.setIndexName(index.html); guard1.setNext(d); Though this does: Directory d = new Directory(getContext(), file: //home/imaginary/build/dir/client-bin);

Re: Slow to retrieve Request Entity?

2007-10-09 Thread Avi Flax
Rob, great call, switching to Jetty did the trick. Thanks! On 10/8/07, Rob Heittman [EMAIL PROTECTED] wrote: Simple has given me some indigestion on OS X 10.4. Any chance you can try it with the regular java.net HTTP connector and/or Jetty and see if you get the same result? That would help

Re: Issue when using Guard for POST and GET requests

2007-10-09 Thread Patson
Patson patson.luk at timesearchinc.com writes: Hi all. I have started using restlet since last month and am impressed with the simplicity it offers. However, I bumped into a problem with using Guards earlier and could not figure out a good way to get around it. Basically I have one

Re: problems using gzip encoding

2007-10-09 Thread Jim Alateras
Jerome, Ignore this last questionbasically i has an invalid test case. cheers /jima Jerome Louvel wrote: Hi Jim, I'm not 100% sure I understand what you exactly want to do: * For the encoding/client side, your approach is OK. * For the decoding/server side, you can directly use the