diff options
-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 { |