Added a responder to serve static content from the classloader.
[jsvc.git] / src / dolda / jsvc / test / Bootstrap.java
CommitLineData
00013ab7
FT
1package dolda.jsvc.test;
2
3import dolda.jsvc.*;
a7d2eb26 4import dolda.jsvc.util.*;
00013ab7
FT
5
6public class Bootstrap {
7 public static Responder responder() {
7779099a
FT
8 Multiplexer root = new Multiplexer();
9 root.file("test", new TestResponder());
10 root.file("", new StaticContent(Bootstrap.class, "static/index.html", false, "text/html"));
11 root.file("css", new StaticContent(Bootstrap.class, "static/test.css", false, "text/css"));
12 root.dir("foo", new StaticContent(Bootstrap.class, "static/foo", true, "text/plain; charset=utf-8"));
13 return(Misc.stdroot(root));
00013ab7
FT
14 }
15}