Package org.mortbay.xml

Examples of org.mortbay.xml.XmlConfiguration.configure()


                connector.setMaxIdleTime(1000 * 60 * 60); // this will make debugging easier

                Server server = new Server(port);
                if (new File("jetty.xml").exists()) {
                    XmlConfiguration configuration = new XmlConfiguration(new FileInputStream("jetty.xml"));
                    configuration.configure(server);
                    log.info("jetty config detected ...");
                }
                server.setConnectors(new Connector[]{connector});
                WebAppContext webApp = new WebAppContext(path, "/");

View Full Code Here


    addStaticHandler(server, "javascripts");
    addStaticHandler(server, "stylesheets");

    WebAppContext webappcontext = new WebAppContext();
    XmlConfiguration configuration = new XmlConfiguration( JettyEmbedder.class.getResourceAsStream( "/jetty-env.xml" ) );
    configuration.configure( webappcontext );
    server.addHandler( webappcontext );
    server.start();

    Runtime.getRuntime().addShutdownHook( new Thread() {
      public void run() {
View Full Code Here

            return;
        }

        logger.info("Configuring Jetty from xml configuration file = " + getJettyConfig());
        XmlConfiguration xmlConfiguration = new XmlConfiguration(getJettyConfig().toURI().toURL());
        xmlConfiguration.configure(getServer().getProxiedObject());
    }

    public JettyPluginServer createServer() {
        return new Jetty6PluginServer();
    }
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.