@Override public Mount<String> create(Path path) throws IOException { return new Mount<String>(new ServletContextDriver(context, path.absolute().getValue()), "war:" + path.absolute().getValue()); } }
public String name(String file) throws IOException { return assertMatch(file).group(1); }
public boolean isDir(String file) throws IOException { Matcher matcher = assertMatch(file); String slash = matcher.group(2); return "/".equals(slash); }
/** * Create the command file system, this method binds the <code>/WEB-INF/crash/commands/</code> path of the * servlet context. * * @param context the servlet context * @return the command file system */ protected FS createCommandFS(ServletContext context) { return new FS().mount(new ServletContextDriver(context, "/WEB-INF/crash/commands/")); }
public ServletContextDriver(ServletContext ctx, String root) { if (ctx == null) { throw new NullPointerException(); } if (root == null) { throw new NullPointerException(); } assertMatch(root); // this.ctx = ctx; this.root = root; }
/** * Create the conf file system, this method binds the <code>/WEB-INF/crash/</code> path of the * servlet context. * * @param context the servlet context * @return the conf file system */ protected FS createConfFS(ServletContext context) { return new FS().mount(new ServletContextDriver(context, "/WEB-INF/crash/")); }
public String name(String file) throws IOException { return assertMatch(file).group(1); }
@Override protected FS createCommandFS() throws IOException, URISyntaxException { FS commandFS = super.createCommandFS(); if (servletContext != null) { commandFS.mount(new ServletContextDriver(servletContext, "/WEB-INF/crash/commands/")); } return commandFS; }
public String name(String file) throws IOException { return assertMatch(file).group(1); }
@Override public Mount<String> create(Path path) throws IOException { return new Mount<String>(new ServletContextDriver(context, path.absolute().getValue()), "war:" + path.absolute().getValue()); } }
public boolean isDir(String file) throws IOException { Matcher matcher = assertMatch(file); String slash = matcher.group(2); return "/".equals(slash); }
@Override public Mount<String> create(Path path) throws IOException { return new Mount<String>(new ServletContextDriver(context, path.absolute().getValue()), "war:" + path.absolute().getValue()); } }
public ServletContextDriver(ServletContext ctx, String root) { if (ctx == null) { throw new NullPointerException(); } if (root == null) { throw new NullPointerException(); } assertMatch(root); // this.ctx = ctx; this.root = root; }
public String name(String file) throws IOException { return assertMatch(file).group(1); }
public boolean isDir(String file) throws IOException { Matcher matcher = assertMatch(file); String slash = matcher.group(2); return "/".equals(slash); }
public ServletContextDriver(ServletContext ctx, String root) { if (ctx == null) { throw new NullPointerException(); } if (root == null) { throw new NullPointerException(); } assertMatch(root); // this.ctx = ctx; this.root = root; }
public ServletContextDriver(ServletContext ctx, String root) { if (ctx == null) { throw new NullPointerException(); } if (root == null) { throw new NullPointerException(); } assertMatch(root); // this.ctx = ctx; this.root = root; }
public boolean isDir(String file) throws IOException { Matcher matcher = assertMatch(file); String slash = matcher.group(2); return "/".equals(slash); }