Hi Ben, Not yet, but it is very straightforward. Actually this feature existed in Restlet 1.1 but was hidden in the Route class. Looking at the API again, I noticed an issue: the validate() method should be public instead of protected. This is fixed in SVN trunk.
You just need to call this method for each request attribute that you want to check for presence and/or for format. You can provide its format as a Java Regex. 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 : Ben R Vesco [mailto:bve...@gmail.com] Envoyé : lundi 16 novembre 2009 19:52 À : discuss@restlet.tigris.org Objet : Examples of org.restlet.routing.Validator? Are there any examples or instructions showing use of the new-ish Validator filter? ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=24186 36 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2423484