rwaldhoff    01/08/13 16:59:42

  Modified:    httpclient/src/java/org/apache/commons/httpclient Tag:
                        rlwrefactoring State.java
  Log:
  store default credentials under the null entry in the map
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.3.2.1   +5 -6      
jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/State.java
  
  Index: State.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/State.java,v
  retrieving revision 1.3
  retrieving revision 1.3.2.1
  diff -u -r1.3 -r1.3.2.1
  --- State.java        2001/08/08 15:29:05     1.3
  +++ State.java        2001/08/13 23:59:41     1.3.2.1
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/State.java,v
 1.3 2001/08/08 15:29:05 rwaldhoff Exp $
  - * $Revision: 1.3 $
  - * $Date: 2001/08/08 15:29:05 $
  + * $Header: 
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/State.java,v
 1.3.2.1 2001/08/13 23:59:41 rwaldhoff Exp $
  + * $Revision: 1.3.2.1 $
  + * $Date: 2001/08/13 23:59:41 $
    *
    * ====================================================================
    *
  @@ -79,7 +79,6 @@
       // ----------------------------------------------------- Instance Variables
   
       protected HashMap credMap = new HashMap();
  -    protected Credentials defaultCred = null;
   
       /**
        * Authenticate token.
  @@ -225,7 +224,7 @@
        * instead.
        */
       public void setDefaultCredentials(Credentials credentials) {
  -        defaultCred = credentials;
  +        this.setCredentials(null,credentials);
       }
   
   
  @@ -233,7 +232,7 @@
        * Get the defualt {@link Credentials}.
        */
       public Credentials getDefaultCredentials() {
  -        return defaultCred;
  +        return this.getCredentials(null);
       }
   
       // --------------------------------------------------------- Public Methods
  
  
  

Reply via email to