X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fdolda%2Fjsvc%2Futil%2FMultiplexer.java;h=8e5aec441fb62c6d3de4f2f0544f81f6959217a4;hb=4126b9f4cd5367a198678f08508880b4a38aad1f;hp=8b003b742e2811207e4cc3bce207294a1cccc017;hpb=a7c50bd905f146c3a28c991e72f43bc9079f3ed8;p=jsvc.git diff --git a/src/dolda/jsvc/util/Multiplexer.java b/src/dolda/jsvc/util/Multiplexer.java index 8b003b7..8e5aec4 100644 --- a/src/dolda/jsvc/util/Multiplexer.java +++ b/src/dolda/jsvc/util/Multiplexer.java @@ -18,7 +18,7 @@ public class Multiplexer implements Responder { public Multiplexer() { this(new Responder() { public void respond(Request req) { - throw(Restarts.stdresponse(404, "Resource not found", "The resource you requested could not be found on this server.")); + throw(new StdResponse(404, "Resource not found", "The resource you requested could not be found on this server.")); } }); } @@ -40,7 +40,7 @@ public class Multiplexer implements Responder { add(new Matcher() { public boolean match(Request req) { if(req.path().equals(fp)) { - throw(Restarts.redirect(fp + "/")); + throw(new Redirect(fp + "/")); } else if(req.path().startsWith(fp + "/")) { responder.respond(RequestWrap.chpath(req, req.path().substring(fp.length() + 1))); return(true);