PDA

View Full Version : Per pattern request intercepting


leetgeezer
Jun 17th, 2007, 04:30 AM
I'd like to perform some custom security checks per URL request pattern. There is the HandlerInterceptor interface, however it seems that it may defined for each HandlerAdapter.

What I'd like to achieve is for e.g. something like this:

/login.do=loginInterceptor
/showEmployee.do=employeeInterceptor


Is there an elegant way to do this?

mpetrashev
Jun 18th, 2007, 05:03 AM
You can implement your own DelegateHandlerInterceptor that based on it's configuration will delegate requests to sub-handlers. Currently spring packages don't provide such handler interceptor.