summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorcremet <cremet@epfl.ch>2004-01-26 15:42:10 +0000
committercremet <cremet@epfl.ch>2004-01-26 15:42:10 +0000
commitee9aea08d4065bfb0c5761140e1a1d80d37748f7 (patch)
treed0dc60876d66b4a444b6463a1cc36e9be29ea67a /sources
parent3dc7c479c16fe3a5f6f5c3fd8027378a727a7eb2 (diff)
downloadscala-ee9aea08d4065bfb0c5761140e1a1d80d37748f7.tar.gz
scala-ee9aea08d4065bfb0c5761140e1a1d80d37748f7.tar.bz2
scala-ee9aea08d4065bfb0c5761140e1a1d80d37748f7.zip
*** empty log message ***
Diffstat (limited to 'sources')
-rwxr-xr-xsources/scala/tools/scaladoc/HTTPServer.java8
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 {