PDA

View Full Version : Filter that Filters on Regular Expression matches URL patter


farhan
Oct 6th, 2005, 04:41 PM
I need to define an HTTP filter to be applied to URLs that I want to define with a regular expression. The current OpenSessionInView does not seem to support this. None of the Filter base classes provided by Spring do this right now either.

I am thinking about just extending OpenSessionInView filter and implementing the shouldNotFilter() method to check the regular expression.

Is this the best way? Is there a filter base class in Spring that already does this?