Package org.eclipse.jetty.webapp

Examples of org.eclipse.jetty.webapp.WebXmlConfiguration


        context.setAttribute("org.eclipse.jetty.websocket.jsr356",Boolean.TRUE);

        // @formatter:off
        context.setConfigurations(new Configuration[] {
                new AnnotationConfiguration(),
                new WebXmlConfiguration(),
                new WebInfConfiguration(),
                new PlusConfiguration(),
                new MetaInfConfiguration(),
                new FragmentConfiguration(),
                new EnvConfiguration()});
View Full Code Here


    //context.setResourceBase("H:\\codes\\opensources\\github\\super-diamond\\super-diamond-server\\src\\main\\webapp");
    context.setContextPath("/superdiamond");
    context.setConfigurations(new Configuration[]{
        new AnnotationConfiguration(),
         new WebInfConfigurationExt(),
         new WebXmlConfiguration(),
             new MetaInfConfiguration(),
             new FragmentConfiguration(),
             new JettyWebXmlConfiguration()});
    context.setThrowUnavailableOnStartupException(true);
    context.setParentLoaderPriority(true);
View Full Code Here

        path = String.format("/%s", UriComponent.decodePath(u.getPath(), true).get(1).toString());
        WebAppContext context = new WebAppContext();
        context.setDisplayName("JettyContext");
        context.setContextPath(path);
        context.setConfigurations(new Configuration[]{new WebXmlConfiguration()});
        ServletHolder holder;
        if (c != null) {
            holder = context.addServlet(c, "/*");
        } else {
            holder = new ServletHolder(servlet);
View Full Code Here

      File warDir = new File(buildDirectory, finalName);
      File warFile = new File(buildDirectory, finalName + ".war");
      File webXmlFile = new File(warDir, webXml);
      FileUtils.copyFile(new File(basedir, "src/main/webapp/" + webXml), webXmlFile);
     
      Configuration[] configurations = new Configuration[] { new WebXmlConfiguration(), new FragmentConfiguration() };
      WebAppContext context = new WebAppContext();
      context.setDefaultsDescriptor(null);
      context.setDescriptor(webXmlFile.getAbsolutePath());
      context.setConfigurations(configurations);
     
View Full Code Here

        // JQM configuration should be on the class path
        webAppContext.setExtraClasspath("conf/jqm.properties");

        // Set configurations (order is important: need to unpack war before reading web.xml)
        webAppContext.setConfigurations(new Configuration[] { new WebInfConfiguration(), new WebXmlConfiguration(),
                new MetaInfConfiguration(), new FragmentConfiguration(), new AnnotationConfiguration(), new TagLibConfiguration() });

        h.addHandler(webAppContext);
    }
View Full Code Here

    throws Exception
    {
        super();  
        setConfigurations(new Configuration[]{
                new MavenWebInfConfiguration(),
                new WebXmlConfiguration(),
                new MetaInfConfiguration(),
                new FragmentConfiguration(),
                _envConfig = new EnvConfiguration(),
                new PlusConfiguration(),
                new AnnotationConfiguration(),
View Full Code Here

                }
            });

            JettyWebAppContext context = new JettyWebAppContext();
            context.setWebInfLib(ImmutableList.copyOf(jars));
            Configuration[] contextConfigs = {new WebXmlConfiguration(), new WebInfConfiguration()};
            context.setConfigurations(contextConfigs);
            context.setDescriptor(webXml);
            context.setResourceBases(new String[] {sourcePath});
            context.setContextPath(contextPath);
            context.setParentLoaderPriority(true);
View Full Code Here

TOP

Related Classes of org.eclipse.jetty.webapp.WebXmlConfiguration

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.