rwaldhoff    01/08/14 11:02:13

  Modified:    httpclient/src/java/org/apache/commons/httpclient Tag:
                        rlwrefactoring Credentials.java URLUtil.java
  Log:
  javadoc
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.1.1.2.1 +35 -45    
jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/Credentials.java
  
  Index: Credentials.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/Credentials.java,v
  retrieving revision 1.1.1.1
  retrieving revision 1.1.1.1.2.1
  diff -u -r1.1.1.1 -r1.1.1.1.2.1
  --- Credentials.java  2001/04/25 18:42:50     1.1.1.1
  +++ Credentials.java  2001/08/14 18:02:13     1.1.1.1.2.1
  @@ -1,13 +1,13 @@
   /*
  - * $Header: 
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/Credentials.java,v
 1.1.1.1 2001/04/25 18:42:50 remm Exp $
  - * $Revision: 1.1.1.1 $
  - * $Date: 2001/04/25 18:42:50 $
  + * $Header: 
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/Credentials.java,v
 1.1.1.1.2.1 2001/08/14 18:02:13 rwaldhoff Exp $
  + * $Revision: 1.1.1.1.2.1 $
  + * $Date: 2001/08/14 18:02:13 $
    *
    * ====================================================================
    *
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 1999 The Apache Software Foundation.  All rights 
  + * Copyright (c) 1999 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -15,7 +15,7 @@
    * are met:
    *
    * 1. Redistributions of source code must retain the above copyright
  - *    notice, this list of conditions and the following disclaimer. 
  + *    notice, this list of conditions and the following disclaimer.
    *
    * 2. Redistributions in binary form must reproduce the above copyright
    *    notice, this list of conditions and the following disclaimer in
  @@ -23,15 +23,15 @@
    *    distribution.
    *
    * 3. The end-user documentation included with the redistribution, if
  - *    any, must include the following acknowlegement:  
  - *       "This product includes software developed by the 
  + *    any, must include the following acknowlegement:
  + *       "This product includes software developed by the
    *        Apache Software Foundation (http://www.apache.org/)."
    *    Alternately, this acknowlegement may appear in the software itself,
    *    if and wherever such third-party acknowlegements normally appear.
    *
    * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
    *    Foundation" must not be used to endorse or promote products derived
  - *    from this software without prior written permission. For written 
  + *    from this software without prior written permission. For written
    *    permission, please contact [EMAIL PROTECTED]
    *
    * 5. Products derived from this software may not be called "Apache"
  @@ -59,95 +59,85 @@
    *
    * [Additional notices, if required by prior licensing conditions]
    *
  - */ 
  + */
   
   package org.apache.commons.httpclient;
   
   /**
  - * Credentials class.
  - * 
  + * Authentication credentials, such as a
  + * name-and-password combination.
  + *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Remy Maucherat</a>
    */
   public class Credentials {
  -    
  -    
  +
       // ----------------------------------------------------------- Constructors
  -    
  -    
  +
       /**
        * Default constructor.
        */
       public Credentials() {
       }
  -    
  -    
  +
       /**
        * Constructor.
        */
       public Credentials(String userName, String password) {
  -        
           this.userName = userName;
           this.password = password;
  -        
       }
  -    
  -    
  +
       // ----------------------------------------------------- Instance Variables
  -    
  -    
  +
       /**
  -     * UserName.
  +     * User name.
        */
       protected String userName;
  -    
  -    
  +
  +
       /**
        * Password.
        */
       protected String password;
  -    
  -    
  +
  +
       // ------------------------------------------------------------- Properties
  -    
  -    
  +
  +
       /**
  -     * UserName property setter.
  -     * 
  -     * @param userName 
  +     * User name property setter.
  +     *
  +     * @param userName
        */
       public void setUserName(String userName) {
           this.userName = userName;
       }
  -    
  -    
  +
       /**
  -     * UserName property getter.
  -     * 
  +     * User name property getter.
  +     *
        * @return String userName
        */
       public String getUserName() {
           return userName;
       }
  -    
  -    
  +
       /**
        * Password property setter.
  -     * 
  -     * @param password 
  +     *
  +     * @param password
        */
       public void setPassword(String password) {
           this.password = password;
       }
  -    
  -    
  +
       /**
        * Password property getter.
  -     * 
  +     *
        * @return String password
        */
       public String getPassword() {
           return password;
       }
  -    
  -    
  +
   }
  
  
  
  1.1.1.1.2.1 +34 -34    
jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/URLUtil.java
  
  Index: URLUtil.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/URLUtil.java,v
  retrieving revision 1.1.1.1
  retrieving revision 1.1.1.1.2.1
  diff -u -r1.1.1.1 -r1.1.1.1.2.1
  --- URLUtil.java      2001/04/25 18:42:52     1.1.1.1
  +++ URLUtil.java      2001/08/14 18:02:13     1.1.1.1.2.1
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/URLUtil.java,v
 1.1.1.1 2001/04/25 18:42:52 remm Exp $
  - * $Revision: 1.1.1.1 $
  - * $Date: 2001/04/25 18:42:52 $
  + * $Header: 
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/URLUtil.java,v
 1.1.1.1.2.1 2001/08/14 18:02:13 rwaldhoff Exp $
  + * $Revision: 1.1.1.1.2.1 $
  + * $Date: 2001/08/14 18:02:13 $
    *
    * ====================================================================
    *
  @@ -82,40 +82,40 @@
    * @author Craig R. McClanahan
    * @author Tim Tye
    * @author Remy Maucherat
  - * @version $Revision: 1.1.1.1 $ $Date: 2001/04/25 18:42:52 $
  + * @version $Revision: 1.1.1.1.2.1 $ $Date: 2001/08/14 18:02:13 $
    */
   
   public final class URLUtil {
   
   
       // -------------------------------------------------------------- Variables
  -    
  -    
  +
  +
       /**
        * The DateFormat to use for generating readable dates in cookies.
        */
       private static SimpleDateFormat format =
           new SimpleDateFormat(" EEEE, dd-MMM-yy kk:mm:ss zz");
  -    
  -    
  +
  +
       /**
        * Array containing the safe characters set.
        */
       protected static BitSet safeCharacters;
  -    
  -    
  -    protected static final char[] hexadecimal = 
  -    {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 
  +
  +
  +    protected static final char[] hexadecimal =
  +    {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
        'A', 'B', 'C', 'D', 'E', 'F'};
  -    
  -    
  +
  +
       // ----------------------------------------------------- Static Initializer
  -    
  -    
  +
  +
       static {
  -        
  +
           format.setTimeZone(TimeZone.getTimeZone("GMT"));
  -        
  +
           safeCharacters = new BitSet(256);
           int i;
           for (i = 'a'; i <= 'z'; i++) {
  @@ -132,13 +132,13 @@
           safeCharacters.set('.');
           safeCharacters.set('*');
           safeCharacters.set('/');
  -        
  +
       }
  -    
  -    
  +
  +
       // --------------------------------------------------------- Public Methods
  -    
  -    
  +
  +
       /**
        * Decode and return the specified URL-encoded String.
        * When the byte array is converted to a string, the system default
  @@ -151,9 +151,9 @@
        * by a valid 2-digit hexadecimal number
        */
       public static String URLDecode(String str) {
  -        
  +
           return URLDecode(str, null);
  -        
  +
       }
   
   
  @@ -166,16 +166,16 @@
        * by a valid 2-digit hexadecimal number
        */
       public static String URLDecode(String str, String enc) {
  -        
  +
           if (str == null)
               return (null);
  -        
  +
           int len = str.length();
           byte[] bytes = new byte[len];
           str.getBytes(0, len, bytes, 0);
  -        
  +
           return URLDecode(bytes, enc);
  -        
  +
       }
   
   
  @@ -200,10 +200,10 @@
        * by a valid 2-digit hexadecimal number
        */
       public static String URLDecode(byte[] bytes, String enc) {
  -        
  +
           if (bytes == null)
               return (null);
  -        
  +
           int len = bytes.length;
           int ix = 0;
           int ox = 0;
  @@ -225,7 +225,7 @@
               }
           }
           return new String(bytes, 0, ox);
  -        
  +
       }
   
   
  @@ -244,7 +244,7 @@
   
       /**
        * URL rewriter.
  -     * 
  +     *
        * @param path Path which has to be rewiten
        */
       public static String URLEncode(String path, String enc) {
  @@ -299,8 +299,8 @@
           return rewrittenPath.toString();
   
       }
  -    
  -    
  +
  +
   }
   
   
  
  
  

Reply via email to