Re: chaining restlets question

2009-06-24 Thread Thierry Boileau
Brendan, The Finder class is a kind of factory mostly used (in the Restlet framework) for instantiating "resources" (I mean instance of Handler such as Resource, or ServerResource). The global scheme is that such Restlet is able to delegate a call to a new instance "resource". Restlet and "reso

Re: chaining restlets question

2009-06-24 Thread brendan murphy
Thanks Thierry, That seems fine, one LAST question, can you send some sample code that demonstrates the usage of the "Finder" Restlet? How to use this seems unclear to me. Thanks again, Brendan... On 24 Jun 2009, at 13:44, Thierry Boileau wrote: > Hi, > > well, instances of the Application c

Re: chaining restlets question

2009-06-24 Thread Thierry Boileau
Hi, well, instances of the Application class, are rather designed to be independent. Hosted by a Component, the primary goal was to keep them unaware of the other applications hosted by the component. However, that does not mean one cannot communicate with another one. I think of the HTTP, for

Re: chaining restlets question

2009-06-24 Thread brendan murphy
Thanks Thierry, Can you route between "Applications" within a component or is routing restricted to within a single "Application" as you have showed in your sample code. Thanks again for all your help, Regards, Brendan... On 24 Jun 2009, at 11:40, Thierry Boileau wrote: > Hello Brendan, > >

Re: chaining restlets question

2009-06-24 Thread Thierry Boileau
Hello Brendan, Filter instances can pre and post process request/response via the "beforeHandle" and "afterHandle" methods, thus it gives you a complete control. Having said that, the "beforeHandle" method is a more a place where to enrich the context of the incoming request, or even update the

RE: Re: chaining restlets question

2009-06-24 Thread brendan murphy
Thanks Thierry, Thats exactly what I was looking for, can I partially build the response as it passes from one restlet to the next, or does the final restlets response overwrite the proceeding ones? Regards, Brendan... -- http://restlet.tigri

Re: chaining restlets question

2009-06-24 Thread Thierry Boileau
Hello Brendan, I send you a sample application that illustrates the usage of Filter subclasses. I hope this will help you. best regards, Thierry Boileau > Hi, > > I'm new to Restlets and need help on how to use separate "restlets" to > handle different parts of a single URI, is this possible?

chaining restlets question

2009-06-24 Thread webpost
Hi, I'm new to Restlets and need help on how to use separate "restlets" to handle different parts of a single URI, is this possible? e.g take the URI "/employee/manager/john". I'd like to attach 3 different "restlet" objects to the router, one to handle each part of the URI path. The first re

chaining restlets question

2009-06-24 Thread brendan murphy
Hi, I'm new to Restlets and need help on how to use separate "restlets" to handle different parts of a single URI, is this possible? e.g take the URI "/employee/manager/john". I'd like to attach 3 different "restlet" objects to the router, one to handle each part of the URI path. The first