Vita Rara: A Life Uncommon

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 SessionAware and ParameterAware. 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.

Reply

Please solve the math problem above and type in the result. e.g. for 1+1, type 2
  • Allowed HTML tags: <a> <img> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre> <h1> <h2> <h3>
  • Lines and paragraphs break automatically.
More information about formatting options