1 29 30 package com.caucho.jsp; 31 32 import com.caucho.vfs.Path; 33 34 37 public class AppDirResourceManager extends JspResourceManager { 38 private final Path _appDir; 39 40 43 public AppDirResourceManager(Path appDir) 44 { 45 _appDir = appDir; 46 47 if (appDir == null) 48 throw new NullPointerException (); 49 } 50 51 54 public Path resolvePath(String uri) 55 { 56 if (uri.startsWith("file:")) 57 return _appDir.lookup(uri); 58 else 59 return _appDir.lookup("./" + uri); 60 } 61 } 62 | Popular Tags |