Update: I've have added a Router.validate method to validate the presence (required flag) and format (Java Regex) of request attributes. If the validation fails, a 400 error is returned with a description message.

This should be used mostly for basic request validation. The normal domain rules should be centralized inside the resources and domain objects in order to allow for their reuse.

See the bug report for more details.

Thanks,
Jerome


Jerome Louvel a écrit :
FYI, I've just entered a report to keep track of this discussion:

"Improve parameter validation"
http://restlet.tigris.org/issues/show_bug.cgi?id=221

Thanks,
Jerome


--
Jerome Louvel
http://www.noelios.com

Reply via email to