commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient Authenticator.java
Date Sun, 14 Jul 2002 02:14:59 GMT
dion        2002/07/13 19:14:59

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        Authenticator.java
  Log:
  Rearranged variables and removed unused imports
  
  Revision  Changes    Path
  1.15      +13 -14    jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/Authenticator.java
  
  Index: Authenticator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/Authenticator.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- Authenticator.java	12 Jul 2002 06:02:52 -0000	1.14
  +++ Authenticator.java	14 Jul 2002 02:14:59 -0000	1.15
  @@ -62,9 +62,8 @@
   
   package org.apache.commons.httpclient;
   
  -import java.util.StringTokenizer;
  -import java.util.NoSuchElementException;
  -import org.apache.commons.httpclient.log.*;
  +import org.apache.commons.httpclient.log.Log;
  +import org.apache.commons.httpclient.log.LogSource;
   
   /**
    * <p>Utility methods for HTTP authorization and authentication.</p>
  @@ -78,6 +77,13 @@
    * @version $Revision$ $Date$
    */
   class Authenticator {
  +    
  +    /** <tt>org.apache.commons.httpclient.Authenticator</tt> log. */
  +    private static final Log log = LogSource.getInstance("org.apache.commons.httpclient.Authenticator");
  +
  +    /** Base 64 encoder. */
  +    private static Base64 base64 = new Base64();
  +
       /**
        * The www authenticate challange header
        */
  @@ -260,11 +266,4 @@
           return "Basic " + new String(base64.encode(authString.getBytes()));
       }
   
  -    // -------------------------------------------------------- Class Variables
  -
  -    /** <tt>org.apache.commons.httpclient.Authenticator</tt> log. */
  -    private static final Log log = LogSource.getInstance("org.apache.commons.httpclient.Authenticator");
  -
  -    /** Base 64 encoder. */
  -    private static Base64 base64 = new Base64();
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message