Package org.atomojo.server

Examples of org.atomojo.server.Configuration


   }
  
   @Test
   public void testLoad() {
      for (int i=0; i<tests.length; i++) {
         Configuration conf = new Configuration();
         try {
            URI uri = getClass().getResource(tests[i]).toURI();
            LOG.info("Loading: "+uri);
            conf.load(uri);
            for (Protocol client : conf.getClients()) {
               LOG.info("Client: "+client);
            }
            for (Server server : conf.getServers()) {
               LOG.info("Server: "+server.getProtocol()+" at "+server.getAddress()+":"+server.getPort());
               for (Host host : server.getHosts().values()) {
                  LOG.info("Host: "+host.getName());
                  Context context = new Context();
                  Router router = new Router(context);
View Full Code Here

TOP

Related Classes of org.atomojo.server.Configuration

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.