Пример #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 addServletsToContext(ServletContextHandler context)
     throws InstantiationException, IllegalAccessException, ClassNotFoundException, Exception {
   synchronized (servletSpecs) {
     Iterator<ServletSpec> servletsIter = servletSpecs.iterator();
     while (servletsIter.hasNext()) {
       ServletSpec spec = servletsIter.next();
       addServletToContext(context, spec);
     }
   }
 }
Пример #3
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);
    }
  }