Set StatusService on Application or Component?

2013-04-02 Thread Arjohn Kampman
Hi all, According the the javadoc for StatusService, one should be able to set it on either the Application or the Component. However, in our case, only the former works. A quick peek at the restlet code shows that Resource.getStatusService() only calls Application.getStatusService(). Is this

Set StatusService on Application or Component?

2013-04-02 Thread Arjohn Kampman
Hi all, According the the javadoc for StatusService, one should be able to set it on either the Application or the Component. However, in our case, only the former works. A quick peek at the restlet code shows that Resource.getStatusService() only calls Application.getStatusService(). Is this

Re: Set StatusService on Application or Component?

2013-04-02 Thread Jerome Louvel
Hi Arjohn, The StatusService has two complementary purposes: - setting an HTTP status based on a Jave exception - setting a response entity in case of on error status For the second purpose, the Component level StatusService is capable of overwriting the response entity in case of error