David, A lot of ideas as well as code originally introduced in SimpleHttpServer code have been ported to HttpCommon, a library of generic HTTP components, which will form the foundation of HttpClient 4.0
http://svn.apache.org/repos/asf/jakarta/httpclient/trunk/http-common/src/ There's already enough code to implement a VERY simple, but fully functional HTTP server. If you take a closer look at it you may notice significant similarities with the original SimpleHttpServer code: http://svn.apache.org/repos/asf/jakarta/httpclient/trunk/http-common/src/examples/org/apache/http/examples/ElementalHttpEchoServer.java Combined with some additional client code this may well make a fairly usable proxy: http://svn.apache.org/repos/asf/jakarta/httpclient/trunk/http-common/src/examples/org/apache/http/examples/HttpRequestExecutorDemo.java One can also use an IoC container, such as Spring, to wire HTTP components together: http://svn.apache.org/repos/asf/jakarta/httpclient/trunk/http-common/src/contrib/org/apache/http/contrib/spring/SpringHttpDemo.java http://svn.apache.org/repos/asf/jakarta/httpclient/trunk/http-common/src/contrib/org/apache/http/contrib/spring/http-beans.xml Hope this helps somewhat, Oleg PS: I am back On Fri, 2005-07-08 at 08:45 -0400, David Smiley wrote: > From what I've heard from you two, 4.0 looks to have a bright future. I > agree with making it more modular so that clients & servers & proxies can > share as much as possible. There is a lot that can be shared, and presently, > much logic is inextricably intertwined into httpclient. I'll check out the > sources sometime to provide feedback. > > Thanks. > > ~ David Smiley > > On Friday, July 08, 2005, at 08:34AM, Michael Becke <[EMAIL PROTECTED]> wrote: > > >Hi David, > > > >As Ortwin mentioned there are no real plans to do anything with the > >test server other than test HttpClient. Though, as part of the 4.0 > >redesign we do hope to make HttpClient more modular and suitable to > >use in a client, server, or proxy. My guess is that at some point we > >will create a simple HTTP server using 4.0 http-common and the test > >server. Anything you'd like to contribute to the process would be > >certainly appreciated. > > > >Mike > > > >On 7/8/05, David Smiley <[EMAIL PROTECTED]> wrote: > >> Hello all. I am new to this list. Not long ago I was looking for > >> open source HTTP server/proxy code that I could use to transform > >> requests & responses in a proxy server configuration. There is code > >> in the test sources of httpclient that I, strangely enough, did NOT > >> find when I was looking for an http proxy but I DID find by accident > >> later, to my pleasant surprise. > >> > >> I was quite impressed with the server code in the test sources. If > >> anybody thinks there is no such thing as self-documenting code, then > >> they haven't seen these sources. However, the code was not without > >> its flaws and I found myself making moderate changes--particularly > >> for extensibility. And despite the self-documenting nature, some > >> things were not clear and snagged me. > >> > >> What is the disposition of the server code in the test sources? That > >> is, are there plans / dreams of it being something bigger than its > >> role now or will it indefinitely remain as something whose only > >> purpose is to test httpclient? If its the former than I'd like to > >> share specific comments on the sources for improvement. I've looked > >> over the httpclient main source tree, and it seems a bit long in the > >> tooth (I mean no disrespect). There seems to be some overlap of > >> functionality between the source trees. I wonder if the next version > >> of httpclient (4.0) could undergo a sort of re-birth using the server > >> code. Or maybe not but it could use a healthy re-write or major re- > >> factoring. > >> > >> Cheers, > >> > >> ~ David Smiley > >> MITRE > >> [EMAIL PROTECTED] > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
