X-Git-Url: http://git.dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fdolda%2Fjsvc%2Ftest%2FBootstrap.java;h=ad4c38f3aeec6a3ed653822e033b8b0fae14c081;hb=7779099a6c15508f2dd214a7555c66a27f8343ed;hp=eb73996cb9b9c1ef586b298faafbe1b66bcf5db5;hpb=79d2dd644f364a02b3d902c3544dfe275ac6461e;p=jsvc.git diff --git a/src/dolda/jsvc/test/Bootstrap.java b/src/dolda/jsvc/test/Bootstrap.java index eb73996..ad4c38f 100644 --- a/src/dolda/jsvc/test/Bootstrap.java +++ b/src/dolda/jsvc/test/Bootstrap.java @@ -5,6 +5,11 @@ import dolda.jsvc.util.*; public class Bootstrap { public static Responder responder() { - return(new ErrorHandler(new Rehandler(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)); } }