1 52 53 54 import com.go.teaservlet.*; 55 import com.go.trove.log.*; 56 import javax.servlet.ServletException ; 57 58 68 public class SampleDirectoryBrowserApp implements Application { 69 70 private Log mLog; 71 private ApplicationConfig mConfig; 72 73 public void init (ApplicationConfig config) throws ServletException { 74 75 mConfig = config; 77 78 79 mLog = config.getLog(); 81 82 } 83 84 public Object createContext(ApplicationRequest request, 86 ApplicationResponse response) { 87 return new SampleDirectoryBrowserContext(request, response, this); 88 } 89 90 public Class getContextType() { 92 return SampleDirectoryBrowserContext.class; 93 } 94 95 public String getInitParameter(String param) { 97 return mConfig.getInitParameter(param); 98 } 99 public void destroy() { 100 } 101 } 102 103 104 105 | Popular Tags |