Package org.eclipse.jst.j2ee.webapplication

Examples of org.eclipse.jst.j2ee.webapplication.ServletMapping


  @SuppressWarnings("unchecked")
  public static void setUpURLMappings(WebApp webApp, String[] urlMappingList, Servlet servlet) {
    // Add mappings
    for (int i=0;i<urlMappingList.length;i++) {
      String pattern = urlMappingList[i];
      ServletMapping mapping = WebapplicationFactory.eINSTANCE.createServletMapping();
      mapping.setServlet(servlet);
      mapping.setName(servlet.getServletName());
      mapping.setUrlPattern(pattern);
      webApp.getServletMappings().add(mapping);
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jst.j2ee.webapplication.ServletMapping

Copyright © 2018 www.massapicom. 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.