Switch to unified view

a/tool/src/www/WebServer.java b/tool/src/www/WebServer.java
...
...
96
        }
96
        }
97
    }
97
    }
98
     
98
     
99
    
99
    
100
    
100
    
101
      /** Start our instance */     
101
    /** Start our web server instance
102
     * @param portNumber the port of communications (typically 80 for Internet)
103
     */     
102
   public void startServer(){
104
   public void startServer(String portNumber){
103
          
105
          
104
            try {
106
            try {
105
            // get the port number
107
            // get the port number
106
            String portNumber = core.settings.read(definition.port, 
108
//            String portNumber = core.settings.read(definition.port, 
107
                    definition.portDefault);
109
//                    definition.portDefault);
108
            int serverPort = Integer.parseInt(portNumber);
110
            int serverPort = Integer.parseInt(portNumber);
109
            
111
            
110
            // launch our server instance
112
            // launch our server instance
111
            queue = new Scheduler(20);
113
            queue = new Scheduler(20);
112
            Container container = this; //new WebServer(queue);
114
            Container container = this; //new WebServer(queue);
...
...
120
//            utils.internet.openURL("http://127.0.0.1/" + portNumber);
122
//            utils.internet.openURL("http://127.0.0.1/" + portNumber);
121
            log.write(is.COMPLETED, "Web server is available on port %1 of this"
123
            log.write(is.COMPLETED, "Web server is available on port %1 of this"
122
                    + " machine", portNumber);
124
                    + " machine", portNumber);
123
            
125
            
124
         } catch (IOException ex) {
126
         } catch (IOException ex) {
125
             log.write(is.ERROR, "Error occurred: %1", ex.getMessage());
127
             log.write(is.ERROR, "Web server error. Couldn't open port %1: %2"
128
                     ,portNumber , ex.getMessage());
126
      }
129
      }
127
   }
130
   }
128
   
131
   
129
   class Task implements Runnable {
132
   class Task implements Runnable {
130
  
133