Re: Problem with virtualHost

2009-12-09 Thread Thierry Boileau
Hello Jean-Christophe, I think you should use the other VirtualHost constructor, that is to say the one with the parent context: VirtualHost host = new VirtualHost(component.getContext()); best regards, Thierry Boileau Hi, I have a problem with virtualHost. The following code works :

Re: Component configuration

2009-12-09 Thread Thierry Boileau
Hi Jean-Christophe, there is a light sample code in the org.restlet.test.ComponentXmlTestCase class. Best regards, Thierry Boileau Hello, I am looking for an example on how to configure a component with an xsd. Anyone has a such example ? Thanks, J-Christophe

Re: Gzip on netty

2009-12-09 Thread Thierry Boileau
Hi kiwi, the gzip encoding of the entity is available via the Encoder filter. For example, when declaring your application: public Restlet createInboundRoot() { Router router = new Router(getContext()); router.attachDefault(HelloWorldResource.class); [...]

Re: XML format in ATOM content element

2009-12-09 Thread Thierry Boileau
Hello Rob, at this time the XMl writer consider the content element as simple text in any case (in the most general case, it can contain both text and XML elements) without taking care of formatting options. However, it is possible to use formatting in the special case of XML content. I've

Re: Empty HTTP WWW-Authenticate header in response

2009-12-09 Thread Thierry Boileau
Hello Yu, I think that your helper is either not recognized or does not specify correctly the serverSide attribute. Could you check that serverSide attribute is set to true, and that the Engine registers correctly your helper (check the Engine.getInstance().getRegisteredAuthenticators() list)?

Re: riap authentication

2009-12-09 Thread Thierry Boileau
Hi Zsolt, I send you a sample application that illustrates the scenario. Best regards, Thierry Boileau Hello Is it possible to authenticate a request via the RIAP protocol? One of my application is guarded by BASIC authentication, and I'd like to use it from another restlet application.

Re: riap authentication

2009-12-09 Thread Zsolt Czinkos
Hi Thierry, Thanks a lot, I'll have a look. zsolt On Wed, Dec 9, 2009 at 12:25 PM, Thierry Boileau thierry.boil...@noelios.com wrote: Hi  Zsolt, I send you a sample application that illustrates the scenario. Best regards, Thierry Boileau Hello Is it possible to authenticate a request

Re: Gzip on netty

2009-12-09 Thread kiwionly
ok.. thx ! work now ! On Wed, Dec 9, 2009 at 5:58 PM, Thierry Boileau thierry.boil...@noelios.com wrote: Hi kiwi, the gzip encoding of the entity is available via the Encoder filter. For example, when declaring your application: public Restlet createInboundRoot() { Router router

Re: IE 8 HTML request not working

2009-12-09 Thread Thierry Boileau
Hello Fabian and Erick, thanks to your report, I've relaxed the checks made on the agent properties which was based on a string comparison sensible to the case. Now, the comparison ignore the case which should enable you to use the tunnel filter. The code is available in the svn repository and

RE: ERROR messages in log file

2009-12-09 Thread Denys Hryvastov
Hi Jerome - I am sorry for such a long delay in my response. I am using ServerServlet in my application. I have one class which extends Application and several classes which extends Resource class. In my web.xml I have servlet servlet-nameRestletServlet/servlet-name servlet-class

Re: Unauthenticated access returns 204.

2009-12-09 Thread Matt Kennedy
I've always thought that 401 Not Authorized was poorly chosen wording, because it really says the same thing as 403 Forbidden. However, the requirement that a 401 status also MUST send a WWW-Authenticate header I think in practice has led 401 to really mean Not Authenticated and 403 to really