1 29 30 package com.caucho.jsp; 31 32 import com.caucho.server.webapp.WebApp; 33 import com.caucho.vfs.Path; 34 35 38 public class AppResourceManager extends JspResourceManager { 39 private WebApp _app; 40 41 public AppResourceManager(WebApp app) 42 { 43 _app = app; 44 } 45 46 49 public Path resolvePath(String uri) 50 { 51 if (uri.startsWith("file:")) 52 return _app.getAppDir().lookup(uri); 53 else if (uri.indexOf("://") >= 0) 54 return null; 55 56 String realPath = _app.getRealPath(uri); 57 58 if (realPath != null) 59 return _app.getAppDir().lookup(realPath); 60 else 61 return null; 62 } 63 } 64 | Popular Tags |