title: How to add servlet Filter with embedded jetty
body: <p>I am embedding jetty into my app, and trying to work out how to add servlet filters (for cookie handling). The wiki and the javadoc's dont make it very clear, what am I missing:</p>
  
  <pre><code>Server server = new Server(port);
  ServletContextHandler context = new ServletContextHandler(ServletContextHandler.SESSIONS);
  context.setContextPath("/");
  FilterHolder f = new FilterHolder(new AuthorisationFilter());
  context.addFilter(... f ...); // ?????
  context.addServlet(new ServletHolder(new TestServlet()), "/");
  </code></pre>
  
  <p>The only info I have found on this is a <a href="http://comments.gmane.org/gmane.comp.java.jetty.support/14244">forum post suggesting the documentation</a> on this needs to be improved.</p>