I posted this question on StackOverflow and remained unanswered. I am hoping I 
will get better luck and posting it here.

I am currently building a Restlet application where I need to build the router 
from a configuration file. The router has different endpoints using the SAME 
resource but configured with different settings defined in a configuration 
file. Usually routers are defined using template route with target resource 
class. This would not work in my case, as the resource needs to be initialized 
with the different settings. I can see one way to solve this problem : using a 
Filter that set the initialization parameters in the context, the filter with 
then forward to the target resource. The target resource will read the 
initialization parameters from context in the doInit(). Is it the best practice 
to handle this use case ? Should I use Restlet or Finder instead of Filter.

Thanks for your help.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3070534

Reply via email to