remm        02/04/06 08:51:50

  Modified:    http11/src/java/org/apache/coyote/http11 Http11Protocol.java
  Log:
  - Parse the port attribute.
  
  Revision  Changes    Path
  1.2       +7 -4      
jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11Protocol.java
  
  Index: Http11Protocol.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11Protocol.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Http11Protocol.java       5 Apr 2002 17:50:39 -0000       1.1
  +++ Http11Protocol.java       6 Apr 2002 16:51:50 -0000       1.2
  @@ -91,12 +91,15 @@
       /** Pass config info
        */
       public void setAttribute( String name, Object value ) {
  +
           log.info("setAttribute " + name + " " + value );
  -        
  -        if( "maxKeepAliveRequests".equals(name) ) {
  -            //            maxKeepAliveRequests=String.intValue((String)value);
  +
  +        if ("maxKeepAliveRequests".equals(name)) {
  +            maxKeepAliveRequests = Integer.parseInt((String) value.toString());
  +        } else if ("port".equals(name)) {
  +            setPort(Integer.parseInt((String) value.toString()));
           }
  -        
  +
       }
   
       public Object getAttribute( String key ) {
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to