175176177178179180181182183184185186
* @param root the root path * @param url the url * @return the folder resolved */ public File resolvePath(File root, String url) { Path path = Path.path(url); File f = root; for( String s : path.getParts() ) { f = new File(f,s); } return f; }
2829303132333435363738
{ } public Resource getResource(String host, String p) { Path path = Path.path(p).getStripFirst(); Resource resource = InfogluePathResolver.resolvePath(path, this); if(logger.isInfoEnabled()) logger.info("Returning resource:" + resource);