private URIish toURIish(ServletContextHandler app, String name) throws URISyntaxException { String p = app.getContextPath(); if (!p.endsWith("/") && !name.startsWith("/")) p += "/"; p += name; return toURIish(p); } }
private URIish toURIish(ServletContextHandler app, String name) throws URISyntaxException { String p = app.getContextPath(); if (!p.endsWith("/") && !name.startsWith("/")) p += "/"; p += name; return toURIish(p); } }
/** * Start the server * * @throws Exception */ public void start() throws Exception { ServletContextHandler sBasic = server.authBasic(smart("/sbasic")); server.setUp(); final String srcName = db.getDirectory().getName(); uri = toURIish(sBasic, srcName); int sslPort = server.getSecurePort(); if (sslPort > 0) { secureUri = uri.setPort(sslPort).setScheme("https"); } }