Examples of addWebAppFragment()


Examples of org.codehaus.enunciate.main.Enunciate.addWebAppFragment()

          filter.setServletNames(allServletNames);
          filter.setDispatchers(new TreeSet<String>(Arrays.asList("FORWARD", "REQUEST")));
        }
        BaseWebAppFragment fragment = new BaseWebAppFragment("global-servlet-filters");
        fragment.setFilters(getWebAppConfig().getGlobalServletFilters());
        enunciate.addWebAppFragment(fragment);
      }

      for (WebAppFragment fragment : enunciate.getWebAppFragments()) {
        if (fragment.getBaseDir() != null) {
          enunciate.copyDir(fragment.getBaseDir(), buildDir);
View Full Code Here

Examples of org.codehaus.enunciate.main.Enunciate.addWebAppFragment()

    webappFragment.setServlets(servlets);
    webappFragment.setFilters(filters);
    if (!isSpringEnabled()) {
      webappFragment.setListeners(Arrays.asList("com.sun.xml.ws.transport.http.servlet.WSServletContextListener"));
    }
    enunciate.addWebAppFragment(webappFragment);
  }

  /**
   * Whether the generated sources are up-to-date.
   *
 
View Full Code Here

Examples of org.codehaus.enunciate.main.Enunciate.addWebAppFragment()

      jaxrsServletComponent.addInitParam("config-location", "/WEB-INF/cxf-jaxrs-servlet.xml");
      servlets.add(jaxrsServletComponent);
    }
    webappFragment.setServlets(servlets);
    webappFragment.setFilters(filters);
    enunciate.addWebAppFragment(webappFragment);
  }

  protected void transformAndCopy(File src, File dest, File transform) throws EnunciateException, IOException {
    if (transform != null) {
      FileInputStream transformStream = new FileInputStream(transform);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.