This patch allows third-party to developers extend HttpSource behavior easily, without having to reimplement the whole thing.
- Adds an hook to customize org.mortbay.jetty.servlet.Context.
- Delegates the HttpServlet instance creation to a protected factory method.
- Changes FlumeHttpServlet visibility to protected, to let third party developers extend from it.
- Adds an hook in FlumeHTTPServlet to customize HttpServletResponse before it is flushed.
We developed this patch because we had to add a custom servlet filter to the Jetty context.
Having this patch applied, a third-party developer could easily extend HttpSource like this: