[2584] in java-interest
http server
daemon@ATHENA.MIT.EDU (Anselm.BairdSmith)
Thu Oct 5 08:11:52 1995
Date: Thu, 5 Oct 1995 11:26:29 +0100
From: "Anselm.BairdSmith" <Anselm.Baird_Smith@inria.fr>
To: Final Year Project <yprj2166@cs.cuhk.hk>
Cc: java-interest@java.sun.com
In-Reply-To: <199510050933.RAA22482@cs.cuhk.hk>
Final Year Project writes:
> Has anybody implemented a http server using Java? Also, is there any
> example code out there that implements a client/server application using
> the alpha3 release?
I am working on such a thing, although nothing is available
yet. Perhaps the best way to get an idea is to have a look at the
following per-directory config file:
----- jindex.cfg
;; Test a simple entities:
(httpd.FileEntity :name "file.html" :type "text/html")
;; Have more fun:
(httpd.BasicAuth
:realm "admin"
:target (httpd.status.ExitStat :name "exit" :type "text/html"))
(httpd.BasicAuth
:realm "admin"
:target (httpd.status.ThreadStat :name "threads" :type "text/html"))
-----
The syntax might change (it has already change at least two times,
from a simple tcl-like, than to an sgml dtd, and finally to this
lisp-ish), but roughly the idea is that exported entities are
encapsulated by classes whose role is to "serve" them through http,
They can be piped together (see how authentication is handled). I
might have lot of fun, writing such things as httpd.servlet.Chat,
httpd.annotate.AnnotableEntity, httpd.cache.CachedEntity, etc
No code available yet: I am using a mixture of alpha3 and beta API
that I hacked, which will not be easily reproducible. Anyway, I'll
probably announce it here when something is available under beta.
I am having fun,
Anselm.
Anselm.BairdSmith@inria.fr - http://www.inria.fr/koala/abaird.html
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com