コード例 #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);
    }
  }
コード例 #3
0
  protected void stopServer() {
    if (server != null) {
      try {
        server.stop();
        server = null;
      } catch (Exception ex) {
        logger.log(Level.INFO, "A problem occurred when stopping the server", ex);
      }
    }
    handlerCollection = null;
    servletContext = null;

    servletSpecs.clear();
    resourceSpecs.clear();
  }