axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdani...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/transport/http SimpleAxisServer.java
Date Thu, 14 Jun 2001 21:07:50 GMT
gdaniels    01/06/14 14:07:50

  Modified:    java/src/org/apache/axis/transport/http
                        SimpleAxisServer.java
  Log:
  Use standard Options for SimpleAxisServer
  
  Revision  Changes    Path
  1.15      +10 -2     xml-axis/java/src/org/apache/axis/transport/http/SimpleAxisServer.java
  
  Index: SimpleAxisServer.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/transport/http/SimpleAxisServer.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- SimpleAxisServer.java	2001/06/14 16:10:38	1.14
  +++ SimpleAxisServer.java	2001/06/14 21:07:47	1.15
  @@ -615,10 +615,18 @@
   
           SimpleAxisServer sas = new SimpleAxisServer();
   
  -        //Debug.setDebugLevel(6);
  +        Options opts = null;
  +        try {
  +            opts = new Options(args);
  +        } catch (MalformedURLException e) {
  +            e.printStackTrace();
  +            return;
  +        }
  +        
  +        Debug.setDebugLevel(opts.isFlagSet('d'));
           
           try {
  -            int port = (args.length==0)? 8080 : Integer.parseInt(args[0]);
  +            int port = opts.getPort();
               ServerSocket ss = new ServerSocket(port);
               sas.setServerSocket(ss);
               sas.run();
  
  
  

Mime
View raw message