Package org.apache.axis2.transport.http

Examples of org.apache.axis2.transport.http.SimpleHTTPServer


                log.info("Axis2 Conf file: " + axis2ConfLocation);
                log.info("Axis2 Repo dir: " + axis2RepoDir);
            }

            configContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem(axis2RepoDir, axis2ConfLocation);
            SimpleHTTPServer receiver = new SimpleHTTPServer(configContext, port);
            TransportInDescription trsIn = configContext.getAxisConfiguration().getTransportIn(Constants.TRANSPORT_HTTP);
            trsIn.setReceiver(receiver);
        }
View Full Code Here


                log.info("Axis2 Conf file: " + axis2xml);
                log.info("Axis2 Repo dir: " + axis2repository);
            }

            configContext = ConfigurationContextFactory.createConfigurationContextFromURIs(axis2xml, axis2repository);
            SimpleHTTPServer receiver = new SimpleHTTPServer(configContext, port);
            TransportInDescription trsIn = configContext.getAxisConfiguration().getTransportIn(Constants.TRANSPORT_HTTP);
            trsIn.setReceiver(receiver);
        }
View Full Code Here

    public static synchronized void start(String repositry) throws Exception {
        if (count == 0) {
          tp = new ThreadPool();
            ConfigurationContext er = getNewConfigurationContext(repositry);

            receiver = new SimpleHTTPServer(er, Constants.TESTING_PORT);

            try {
                receiver.start();
                System.out.print(
                        "Server started on port " + Constants.TESTING_PORT +
View Full Code Here

        try {
            File file = new File(MessageComparator.TEST_MAIN_DIR+ "target/Repository");
            if(!file.exists()){
                throw new AxisFault(file.getAbsolutePath() + " File does not exist");
            }
            SimpleHTTPServer receiver = new SimpleHTTPServer(file.getAbsolutePath(), port);
            receiver.start();
        } catch (Exception e) {
            log.info(e.getMessage());
        }
    }
View Full Code Here

    public static synchronized void start(String repository) throws Exception {
        if (count == 0) {
            ConfigurationContext er = getNewConfigurationContext(repository);

            receiver = new SimpleHTTPServer(er, TESTING_PORT);

            try {
                receiver.start();
                System.out.print("Server started on port "
                        + TESTING_PORT + ".....");
View Full Code Here

     public static synchronized void start(String repository , String axis2xml) throws Exception {
        if (count == 0) {
            ConfigurationContext er = getNewConfigurationContext(repository,axis2xml);

            receiver = new SimpleHTTPServer(er, TESTING_PORT);

            try {
                receiver.start();
                System.out.print("Server started on port "
                        + TESTING_PORT + ".....");
View Full Code Here

    public static synchronized void start(String repository) throws Exception {
        if (count == 0) {
            ConfigurationContext er = getNewConfigurationContext(repository);

            receiver = new SimpleHTTPServer(er, TESTING_PORT);

            receiver.start();
            System.out.print("Server started on port " + TESTING_PORT + ".....");

            try {
View Full Code Here

            // add the service
//            Configurator configurator = new Configurator();
//            ClassDeployer classDeployer = new ClassDeployer(confContext, configurator);
//            classDeployer.deployClass(Service2.class);

            SimpleHTTPServer simpleHttpServer = new SimpleHTTPServer(confContext, 5555);
            simpleHttpServer.start();

            System.out.println("Server started on port 5555 ");
            try {
                Thread.sleep(2000);
            } catch (InterruptedException e) {
View Full Code Here

                throw new AxisFault("Thread interuptted", e1);
            }

            ServerSocket serverSoc = null;
            serverSoc = new ServerSocket(Constants.TESTING_PORT);
            reciver = new SimpleHTTPServer(er, serverSoc);
            Thread thread = new Thread(reciver);
            thread.setDaemon(true);

            try {
                thread.start();
View Full Code Here

        axisConfiguration.addTransportOut(transportOut);

        transportIn = new TransportInDescription("null");
        transportIn2 = new TransportInDescription("always");
        transportIn3 = new TransportInDescription("thebest");
        transportIn.setReceiver(new SimpleHTTPServer());
        transportIn2.setReceiver(new SimpleHTTPServer());
        transportIn3.setReceiver(new SimpleHTTPServer());
        axisConfiguration.addTransportIn(transportIn2);
        axisConfiguration.addTransportIn(transportIn);
        axisConfiguration.addTransportIn(transportIn3);

    }
View Full Code Here

TOP

Related Classes of org.apache.axis2.transport.http.SimpleHTTPServer

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.