Package com.ramforth.webserver

Examples of com.ramforth.webserver.WebServer.addModule()


        perlFile.setServerPath(WebServerCGIExample.class.getResource("/examples/perlCgiTest.pl").getPath());
        // add the newly created resource to the module
        httpCgiModule.getResources().addResource(perlFile);
       
        // add the module to the server
        webServer.addModule(httpCgiModule);

        // create an http listener for InetAddress.getLocalhost() on port 11111
        IHttpListener httpListener = new HttpListener(11111);
       
        // add the listener to the server
View Full Code Here


        staticFile.setServerPath(WebServerFileExample.class.getResource("/examples/staticFileTest.htm").getPath());
        // add the newly created resource to the module
        httpFileModule.getResources().addResource(staticFile);
       
        // add the module to the server
        webServer.addModule(httpFileModule);

        // create an http listener for InetAddress.getLocalhost() on port 11111
        IHttpListener httpListener = new HttpListener(11111);
       
        // add the listener to the server
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.