Training and application development. Let our experts develop your applications. We're fast. We're reasonably priced. We've been there... done that.
To contact Mark send an email to mark@mjm.net. You will receive an auto response from my mail server to verify you're not a spammer.
© Mark Menard
avoiding dependency on Servlet classes
If you want to avoid dependencies on Servlet classes for the request and response, you can also have your interceptor class implement
SessionAwareandParameterAware. This does introduce a couple of boilerplate methods, which I've noticed you don't care for, but those replace the equally boilerplate code to get the context and then the request and response that way, so I think it balances.