X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fdolda%2Fjsvc%2Ftest%2FBootstrap.java;h=ad4c38f3aeec6a3ed653822e033b8b0fae14c081;hb=60ef28853e4aca8b227f533c4b95c03de6574e02;hp=49abdd2489f5f695ff933decbcc432058a0ddefe;hpb=00013ab771bb86a62e6f2fc1f4304755d96c75c1;p=jsvc.git diff --git a/src/dolda/jsvc/test/Bootstrap.java b/src/dolda/jsvc/test/Bootstrap.java index 49abdd2..ad4c38f 100644 --- a/src/dolda/jsvc/test/Bootstrap.java +++ b/src/dolda/jsvc/test/Bootstrap.java @@ -1,9 +1,15 @@ package dolda.jsvc.test; import dolda.jsvc.*; +import dolda.jsvc.util.*; public class Bootstrap { public static Responder responder() { - return(new TestResponder()); + Multiplexer root = new Multiplexer(); + root.file("test", new TestResponder()); + root.file("", new StaticContent(Bootstrap.class, "static/index.html", false, "text/html")); + root.file("css", new StaticContent(Bootstrap.class, "static/test.css", false, "text/css")); + root.dir("foo", new StaticContent(Bootstrap.class, "static/foo", true, "text/plain; charset=utf-8")); + return(Misc.stdroot(root)); } }