1 package dolda.jsvc.util;
6 public class RootRedirect extends Redirect {
7 private final String to;
9 public RootRedirect(String to) {
13 protected URL target(Request req) {
15 return(new URL(req.rooturl(), Misc.stripslashes(to, true, false)));
16 } catch(MalformedURLException e) {
17 throw(new RuntimeException("Bad relative URL: + " + to, e));