Package com.firefly.server.http

Examples of com.firefly.server.http.HttpHandler


        .getInstance().init(context);

    config.setEncoding(context.getEncoding());

    Server server = new TcpServer(new HttpDecoder(config),
        new HttpEncoder(), new HttpHandler(controller, config));
    server.start(config.getHost(), config.getPort());
    long end = System.currentTimeMillis();
    log.info("firefly startup in {} ms", (end - start));
  }
View Full Code Here


    if(config.isSecure()) {
      log.info("enable SSL");
      Server server = new TcpServer(
          new SSLDecoder(new HttpDecoder(config)),
          new SSLEncoder(),
          new HttpHandler(controller, config),
          config.getMaxConnectionTimeout());
      server.start(config.getHost(), config.getPort());
    } else {
      Server server = new TcpServer(
          new HttpDecoder(config),
          new HttpEncoder(),
          new HttpHandler(controller, config),
          config.getMaxConnectionTimeout());
      server.start(config.getHost(), config.getPort());
    }
  }
View Full Code Here

TOP

Related Classes of com.firefly.server.http.HttpHandler

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.