Spring's handler mapping mechanism has a concept of handler interceptors that can be very much useful when you want to apply specific functionality to certain requests. For example suppose you want to satisfy some request if and only if it comes on some specific time in weekdays then HandlerInterceptors can be more useful.