Examples of http()


Examples of org.apache.tomee.util.QuickServerXmlParser.http()

        }

        final QuickServerXmlParser ports = QuickServerXmlParser.parse(serverXml);
        if (configuration.getKeepServerXmlAsThis()) {
            // force ports to be able to stop the server and get @ArquillianResource
            configuration.setHttpPort(Integer.parseInt(ports.http()));
            configuration.setStopPort(Integer.parseInt(ports.stop()));
            return; // in this case we don't want to override the conf
        }

        final Map<String, String> replacements = new HashMap<String, String>();
View Full Code Here

Examples of org.apache.tomee.util.QuickServerXmlParser.http()

            configuration.setStopPort(Integer.parseInt(ports.stop()));
            return; // in this case we don't want to override the conf
        }

        final Map<String, String> replacements = new HashMap<String, String>();
        replacements.put(ports.http(), String.valueOf(configuration.getHttpPort()));
        replacements.put(ports.https(), String.valueOf(configuration.getHttpsPort()));
        replacements.put(ports.stop(), String.valueOf(configuration.getStopPort()));
        replacements.put(ports.ajp(), String.valueOf(ajpPort(configuration)));

        if (configuration.isUnpackWars()) {
View Full Code Here

Examples of org.apache.tomee.util.QuickServerXmlParser.http()

            if (!home.exists()) {
                throw new IllegalArgumentException("You need to set openejb.home");
            }

            final QuickServerXmlParser parser = QuickServerXmlParser.parse(new File(home, "conf/server.xml"));
            final String remoteEjb = System.getProperty(Context.PROVIDER_URL, "http://" + parser.host() + ":" + parser.http() + "/tomee/ejb");

            try {
                instance = new RemoteTomEEEJBContainer();
                instance.container = new RemoteServer();
                instance.container.setPortStartup(Integer.parseInt(parser.http()));
View Full Code Here

Examples of org.apache.tomee.util.QuickServerXmlParser.http()

            final String remoteEjb = System.getProperty(Context.PROVIDER_URL, "http://" + parser.host() + ":" + parser.http() + "/tomee/ejb");

            try {
                instance = new RemoteTomEEEJBContainer();
                instance.container = new RemoteServer();
                instance.container.setPortStartup(Integer.parseInt(parser.http()));
                instance.container.start();
                instance.context = new InitialContext(new Properties() {{
                    setProperty(Context.INITIAL_CONTEXT_FACTORY, RemoteInitialContextFactory.class.getName());
                    setProperty(Context.PROVIDER_URL, remoteEjb);
                }});
View Full Code Here

Examples of org.apache.tomee.util.QuickServerXmlParser.http()

            System.setProperty("openejb.home", distribOutput.getAbsolutePath());
            System.setProperty("server.shutdown.port", parser.stop());
            System.setProperty("server.shutdown.command", config.getProperty("shutdownCommand"));

            final RemoteServer server = new RemoteServer();
            server.setPortStartup(Integer.parseInt(parser.http()));

            if (config.containsKey("additionalClasspath")) {
                server.setAdditionalClasspath(config.getProperty("additionalClasspath"));
            }
View Full Code Here

Examples of org.apache.tomee.util.QuickServerXmlParser.http()

        FileWriter writer = null;
        try {
            writer = new FileWriter(serverXml);
            writer.write(value
                .replace(parser.http(), Integer.toString(tomeeHttpPort))
                .replace(parser.https(), Integer.toString(tomeeHttpsPort))
                .replace(parser.ajp(), Integer.toString(tomeeAjpPort))
                .replace(parser.stop(), Integer.toString(tomeeShutdownPort))
                .replace(parser.host(), tomeeHost)
                .replace(parser.appBase(), webappDir));
View Full Code Here

Examples of org.apache.tomee.util.QuickServerXmlParser.http()

            final File serverXml = new File(home, "conf/server.xml");

            if (serverXml.exists() && serverXml.isFile()) {
                final QuickServerXmlParser parser = QuickServerXmlParser.parse(serverXml);

                return Integer.parseInt(parser.http());
            }
        }

        return Integer.getInteger("server.http.port", def);
    }
View Full Code Here

Examples of org.apache.tomee.util.QuickServerXmlParser.http()

        }

        final QuickServerXmlParser ports = QuickServerXmlParser.parse(serverXml);
        if (configuration.getKeepServerXmlAsThis()) {
            // force ports to be able to stop the server and get @ArquillianResource
            configuration.setHttpPort(Integer.parseInt(ports.http()));
            configuration.setStopPort(Integer.parseInt(ports.stop()));
            return; // in this case we don't want to override the conf
        }

        final Map<String, String> replacements = new HashMap<>();
View Full Code Here

Examples of org.apache.tomee.util.QuickServerXmlParser.http()

            configuration.setStopPort(Integer.parseInt(ports.stop()));
            return; // in this case we don't want to override the conf
        }

        final Map<String, String> replacements = new HashMap<>();
        replacements.put(ports.http(), String.valueOf(configuration.getHttpPort()));
        replacements.put(ports.https(), String.valueOf(configuration.getHttpsPort()));
        replacements.put(ports.stop(), String.valueOf(configuration.getStopPort()));
        replacements.put(ports.ajp(), String.valueOf(ajpPort(configuration)));

        if (configuration.isUnpackWars()) {
View Full Code Here

Examples of org.apache.tomee.util.QuickServerXmlParser.http()

            if (!home.exists()) {
                throw new IllegalArgumentException("You need to set openejb.home");
            }

            final QuickServerXmlParser parser = QuickServerXmlParser.parse(new File(home, "conf/server.xml"));
            final String remoteEjb = System.getProperty(Context.PROVIDER_URL, "http://" + parser.host() + ":" + parser.http() + "/tomee/ejb");
            System.setProperty(RemoteServer.SERVER_SHUTDOWN_PORT, parser.stop());

            try {
                instance = new RemoteTomEEEJBContainer();
                instance.container = new RemoteServer();
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.