Lars, Good point, I've just updated Filter#setNext() and similar method to work with ServerResource subclasses as well. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com
-----Message d'origine----- De : Lars Heuer [mailto:[email protected]] Envoyé : vendredi 10 avril 2009 12:26 À : [email protected] Objet : Restlet 1.2 -- Filter Hi all, I ran against a problem with the 1.2 Filter. The filter does not let me specify that 'next' is a ServerResource. I propose to change Filter as follows: - Add method "setNext(Class<? extends UniformResource> targetClass)" or "setNext(Class<?> targetClass)" - Remove "setNext(Class<? extends Resource> targetClass)" - Add a constructor that takes either Class<?> or Class<? extends UniformResource) just to be consistent (since it has already a constructor "Filter(Context context, Restlet next)") Best regards, Lars -- http://www.semagia.com ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=16283 27 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1687946

