コード例 #1
0
 /** Add web apps. */
 private void addWebApps() throws Exception {
   Iterator<String> keyIter = webappSpecs.keySet().iterator();
   while (keyIter.hasNext()) {
     String contextPath = keyIter.next();
     String warPath = (String) webappSpecs.get(contextPath);
     addWebApp(contextPath, warPath);
   }
 }
コード例 #2
0
  private void addResourceHandlers() throws Exception {
    // TODO the following should be in another wedge
    // set a static resource base
    // String meemkitDir = System.getProperty(MEEMKIT_MANAGER_DIR);
    // addResourceHandler(meemkitContextString, meemkitDir + "/installed");

    // add ResourceHandlers for other contexts
    Iterator<String> keyIter = resourceSpecs.keySet().iterator();
    while (keyIter.hasNext()) {
      String contextPath = keyIter.next();
      String filePath = (String) resourceSpecs.get(contextPath);
      addResourceHandler(contextPath, filePath);
    }
  }