Hi, I work on a project (IBM Rational Jazz - http://jazz.net/) where we use
an OSGi (Equinox) server runtime within a JEE server, using the Equinox
Servlet Bridge.
I prefer the HttpCore API to the Servlet API, so I've written a small
wrapper that allows you to embed an Apache HttpProcessor object in the
Servlet/OSGi environment simply by subclassing a superclass I've created and
registering your object with the OSGi runtime. With this superclass, it's
basically about 2-10 lines of code (depending on how many interceptors you
want to add).
I'd be happy to contribute this superclass, the OSGi packaging, and an
example application if you would be interested in looking at it and possibly
using it. Please let me know.
PS - Here's the first couple of lines of the abstract superclass which
should provide some concrete details on what it provides:
public abstract class AbstractHandlerWrapperServlet extends HttpServlet
implements HttpRequestInterceptorList, HttpResponseInterceptorList {
private HttpRequestHandler handler;
private HttpContext parentContext;
private BasicHttpProcessor httpProcessor = new BasicHttpProcessor();
--
- Bill Higgins (http://billhiggins.us/weblog/about/)