diff options
author | cremet <cremet@epfl.ch> | 2004-01-26 15:42:10 +0000 |
---|---|---|
committer | cremet <cremet@epfl.ch> | 2004-01-26 15:42:10 +0000 |
commit | ee9aea08d4065bfb0c5761140e1a1d80d37748f7 (patch) | |
tree | d0dc60876d66b4a444b6463a1cc36e9be29ea67a /sources | |
parent | 3dc7c479c16fe3a5f6f5c3fd8027378a727a7eb2 (diff) | |
download | scala-ee9aea08d4065bfb0c5761140e1a1d80d37748f7.tar.gz scala-ee9aea08d4065bfb0c5761140e1a1d80d37748f7.tar.bz2 scala-ee9aea08d4065bfb0c5761140e1a1d80d37748f7.zip |
*** empty log message ***
Diffstat (limited to 'sources')
-rwxr-xr-x | sources/scala/tools/scaladoc/HTTPServer.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sources/scala/tools/scaladoc/HTTPServer.java b/sources/scala/tools/scaladoc/HTTPServer.java index 3cdc8b31ce..ed0d682964 100755 --- a/sources/scala/tools/scaladoc/HTTPServer.java +++ b/sources/scala/tools/scaladoc/HTTPServer.java @@ -48,6 +48,11 @@ public class EchoServlet extends Servlet { } } +/** + * HTTP server. It is in fact an extension of an example found in the + * book "Java Network Programming" by Elliotte Rusty Harold that can + * handle servlet invokations. + */ public class HTTPServer extends Thread { private File documentRootDirectory; @@ -79,6 +84,9 @@ public class HTTPServer extends Thread { this(documentRootDirectory, 80, "index.html"); } + /** + * Launch the server with a specified list of servlets. + */ public HTTPServer(File documentRootDirectory, int port, Servlet[] servlets) throws IOException { |