Package com.bradmcevoy.common

Examples of com.bradmcevoy.common.Path


   * @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;
  }
View Full Code Here


  {
  } 
 
  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);
View Full Code Here

TOP

Related Classes of com.bradmcevoy.common.Path

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.