title: javax servlet filter vs jersey filter
body: <p>I'm planning on writing a servlet application (meant for deployment with OSGI) and use some filters for HTTP header pre-processing. While originally settled on the javax.servlet filter implementation, it occured to me that I actually don't know why/when one would choose to use that vs the Jersey ContainerRequestFilter. 
  Granted the latter comes with some pre-built filters, but arguably so does the former (eg Cors filter).
  Thus, what should be considered when choosing which API to use? Are there specific cases when one should not be used in favor of the other?</p>