I'd like to write an interceptor that checks if the user is logged in, but only apply it (declaratively if possible) to certain URLs.
e.g. if the user enters /login.action the interceptor is not applied, but if he enters /search.action it is.
The method described in the documentation applies the interceptor to all requests independent of the URL.
What's the best way of going about this?