Package kilim.http

Examples of kilim.http.HttpServer


*/

public class SimpleHttpServer {

    public static void main(String[] args) throws IOException {
        new HttpServer(7262, SimpleHttpSession.class);
        System.out.println("SimpleHttpServer listening on http://localhost:7262");
        System.out.println("From a browser, try http://localhost:7262/hello\n or http://localhost:7262/buy?code=200&desc=Rolls%20Royce");
    }
View Full Code Here


        }
        baseDirectoryName = baseDirectory.getCanonicalPath();

        // create a listener on port 7262. An instance of HttpFileServer is created upon
        // every new socket connection to this port.
        new HttpServer(7262, HttpFileServer.class);
        System.out.println("HttpFileServer listening on http://localhost:7262");
    }
View Full Code Here

TOP

Related Classes of kilim.http.HttpServer

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.