billbarker    2004/10/04 21:45:55

  Modified:    coyote/src/java/org/apache/coyote/tomcat3
                        CoyoteInterceptor2.java
  Log:
  The translation of HTTP/1.1 attribute names is now the responsibility of the 
Connector.
  
  Revision  Changes    Path
  1.20      +23 -1     
jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat3/CoyoteInterceptor2.java
  
  Index: CoyoteInterceptor2.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat3/CoyoteInterceptor2.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- CoyoteInterceptor2.java   26 Feb 2004 06:00:27 -0000      1.19
  +++ CoyoteInterceptor2.java   5 Oct 2004 04:45:55 -0000       1.20
  @@ -101,7 +101,7 @@
       Hashtable attributes=new Hashtable();
       
       public void setAttribute( String prop, Object value) {
  -     attributes.put( prop, value );
  +     attributes.put( translateAttributeName(prop), value );
       }
   
   
  @@ -253,5 +253,27 @@
            SSLSupport.CERTIFICATE_KEY.equals(key)     ||
            SSLSupport.SESSION_ID_KEY.equals(key);
       }
  +
  +    private String translateAttributeName(String name) {
  +         if ("clientAuth".equals(name)) {
  +             return "clientauth";
  +         } else if ("keystoreFile".equals(name)) {
  +             return "keystore";
  +         } else if ("randomFile".equals(name)) {
  +             return "randomfile";
  +         } else if ("rootFile".equals(name)) {
  +             return "rootfile";
  +         } else if ("keystorePass".equals(name)) {
  +             return "keypass";
  +         } else if ("keystoreType".equals(name)) {
  +             return "keytype";
  +         } else if ("sslProtocol".equals(name)) {
  +             return "protocol";
  +         } else if ("sslProtocols".equals(name)) {
  +             return "protocols";
  +         }
  +         return name;
  +    }
  + 
   }
   
  
  
  

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

Reply via email to