Preston L. Bannister <[EMAIL PROTECTED]> wrote:

>BTW, I added some code to HttpRequest in Nexus to handle HTTP/1.1.  Is
there
>anyone tracking changes to Nexus?
>
>Not that it matters long-term as Nexus is not Open Source.


Perhaps the author would not mind giving up the source code to a group of
people interested in maintaining it. Or perhaps it would be easier to use
one of the newer servers that are already open source.

One reason I would rather use Nexus is because it already works for me. I
had a tough time getting many of the embeddable web/servlet servers to work
a few months ago, but after figuring out some poorly-documented features, I
got Nexus to work.

So I created two interfaces, one called WebServer and one called
ServletServer and created a class called NexusAdapter that implemented both
interfaces. I figured that when I decided to switch to a different server, I
would write another adapter and then the rest of my code wouldn't have to
change.

I've been thinking that it might be nice if there were a large number of web
and servlet servers out there that either implemented those interfaces or
had an adapter that implemented the interfaces. That would make it easier to
switch servers, and it might promote the creation of third-party admin
tools.

My interfaces are extremely simple right now; I only wrote methods that I
needed, figuring I'd add more as I went along. WebServer has the following
methods:

  setDocumentRoot( String inRoot );
  setPort( int inPort );
  start();

ServletServer has the following method:

  addServlet( String inClassName, String inServletName, Hashtable
inInitParamters );




Does anyone else think it might be useful or worthwhile to come up with a
good set of interfaces?

Erik

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to