Package org.snova.framework.server

Examples of org.snova.framework.server.ProxyServer


      IniProperties cfg = SnovaConfiguration.getInstance()
              .getIniProperties();
      String listen = cfg.getProperty("LocalServer", "Listen");
      SimpleSocketAddress address = HttpClientHelper
              .getHttpRemoteAddress(false, listen);
      servers.add(new ProxyServer(address, ProxyServerType.AUTO));
      SharedObjectHelper.getTrace().info(
              "Local HTTP(S) Server Listen on address " + listen);
      if (C4.enable && null != cfg.getProperty("C4", "Listen"))
      {
        SimpleSocketAddress tmp = HttpClientHelper
                .getHttpRemoteAddress(false,
                        cfg.getProperty("C4", "Listen"));
        servers.add(new ProxyServer(tmp, ProxyServerType.C4));
        SharedObjectHelper.getTrace().info(
                "Local HTTP(S) Server Listen on address " + tmp);
      }
      if (GAE.enable && null != cfg.getProperty("GAE", "Listen"))
      {
        SimpleSocketAddress tmp = HttpClientHelper
                .getHttpRemoteAddress(false,
                        cfg.getProperty("GAE", "Listen"));
        servers.add(new ProxyServer(tmp, ProxyServerType.GAE));
        SharedObjectHelper.getTrace().info(
                "Local HTTP(S) Server Listen on address " + tmp);
      }

      isStarted = true;
View Full Code Here

TOP

Related Classes of org.snova.framework.server.ProxyServer

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.