Package com.nabalive.framework.web

Examples of com.nabalive.framework.web.HttpServer


* Date: 10/20/11
*/
public class MainTestServer {

    public static void main(String args[]) throws InterruptedException {
        final HttpServer httpServer = new HttpServer();
        httpServer.setRestHandler(new MyRestHandler());

        httpServer.start();

        Thread.sleep(Long.MAX_VALUE);
    }
View Full Code Here


{
    private ClassPathXmlApplicationContext ap;

    public App(String[] configs){
        ap = new ClassPathXmlApplicationContext(configs);
        final HttpServer httpserver = ap.getBean("httpserver", HttpServer.class);

        httpserver.setPort(Integer.parseInt(System.getProperty("port", "8999")));

        httpserver.start();
        System.out.println("HTTP STARTED");
    }
View Full Code Here

TOP

Related Classes of com.nabalive.framework.web.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.