Package org.jboss.metadata.web.spec

Examples of org.jboss.metadata.web.spec.Web23MetaData


      WebMetaData webApp = unmarshal();
      assertEverything(webApp);
   }
   public void testVersion() throws Exception
   {
      Web23MetaData webApp = (Web23MetaData) unmarshal();
      DescriptionGroupMetaData dg = webApp.getDescriptionGroup();
      assertNotNull(dg);
      assertEquals("A servlet 2.3 descriptor", dg.getDescription());
      assertEquals("web-app_2_3", webApp.getId());
      assertEquals("2.3", webApp.getVersion());
      assertEquals("-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN", webApp.getDtdPublicId());
      assertEquals("web-app_2_3-display-name", dg.getDisplayName());
   }
View Full Code Here


            version = Version.SERVLET_3_0;
        }
        WebMetaData wmd = null;
        switch (version) {
            case SERVLET_2_2: wmd = new Web22MetaData(); break;
            case SERVLET_2_3: wmd = new Web23MetaData(); break;
            case SERVLET_2_4: wmd = new Web24MetaData(); break;
            case SERVLET_2_5: wmd = new Web25MetaData(); break;
            case SERVLET_3_0: wmd = new Web30MetaData(); break;
        }
View Full Code Here

TOP

Related Classes of org.jboss.metadata.web.spec.Web23MetaData

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.