hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r527903 - in /jakarta/httpcomponents/httpclient/trunk/src: java/org/apache/http/auth/ java/org/apache/http/cookie/ java/org/apache/http/cookie/params/ test/org/apache/http/cookie/
Date Thu, 12 Apr 2007 12:42:40 GMT
Author: olegk
Date: Thu Apr 12 05:42:35 2007
New Revision: 527903

URL: http://svn.apache.org/viewvc?view=rev&rev=527903
Log:
Renamed CookiePolicy to CookieSpecRegistry and AuthPolicy to AuthSchemeRegistry

Added:
    jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/auth/AuthSchemeRegistry.java
      - copied, changed from r527900, jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/auth/AuthPolicy.java
    jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/cookie/CookieSpecRegistry.java
      - copied, changed from r527900, jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/cookie/CookiePolicy.java
Removed:
    jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/auth/AuthPolicy.java
    jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/cookie/CookiePolicy.java
Modified:
    jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/cookie/params/CookieSpecParams.java
    jakarta/httpcomponents/httpclient/trunk/src/test/org/apache/http/cookie/TestCookiePolicy.java

Copied: jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/auth/AuthSchemeRegistry.java
(from r527900, jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/auth/AuthPolicy.java)
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/auth/AuthSchemeRegistry.java?view=diff&rev=527903&p1=jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/auth/AuthPolicy.java&r1=527900&p2=jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/auth/AuthSchemeRegistry.java&r2=527903
==============================================================================
--- jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/auth/AuthPolicy.java
(original)
+++ jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/auth/AuthSchemeRegistry.java
Thu Apr 12 05:42:35 2007
@@ -39,17 +39,17 @@
 import org.apache.http.params.HttpParams;
 
 /**
- * Authentication policy class. The Authentication policy provides corresponding
- * authentication scheme interfrace for a given type of authorization challenge. 
+ * Authentication scheme registry that can be used to obtain the corresponding
+ * authentication scheme implementation for a given type of authorization challenge. 
  * 
  * @author <a href="mailto:oleg at ural.ru">Oleg Kalnichevski</a>
  *
  * @version $Revision$
  * @since 3.0
  */
-public final class AuthPolicy {
+public final class AuthSchemeRegistry {
 
-    public final static AuthPolicy DEFAULT = new AuthPolicy();
+    public final static AuthSchemeRegistry DEFAULT = new AuthSchemeRegistry();
     
     private final Map registeredSchemes = new LinkedHashMap();
     

Copied: jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/cookie/CookieSpecRegistry.java
(from r527900, jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/cookie/CookiePolicy.java)
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/cookie/CookieSpecRegistry.java?view=diff&rev=527903&p1=jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/cookie/CookiePolicy.java&r1=527900&p2=jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/cookie/CookieSpecRegistry.java&r2=527903
==============================================================================
--- jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/cookie/CookiePolicy.java
(original)
+++ jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/cookie/CookieSpecRegistry.java
Thu Apr 12 05:42:35 2007
@@ -40,21 +40,22 @@
 import org.apache.http.params.HttpParams;
 
 /**
- * Cookie management policy class. The cookie policy provides corresponding
- * cookie management interfrace for a given type or version of cookie. 
+ * Cookie specification registry that can be used to obtain the corresponding
+ * cookie specification implementation for a given type of type or version of 
+ * cookie. 
  * 
  * @author <a href="mailto:oleg at ural.ru">Oleg Kalnichevski</a>
  * @author <a href="mailto:mbowler@GargoyleSoftware.com">Mike Bowler</a>
  *
  * @since 4.0
  */
-public final class CookiePolicy {
+public final class CookieSpecRegistry {
 
-    public final static CookiePolicy DEFAULT = new CookiePolicy();
+    public final static CookieSpecRegistry DEFAULT = new CookieSpecRegistry();
     
     private final Map registeredSpecs;
     
-    public CookiePolicy() {
+    public CookieSpecRegistry() {
         super();
         this.registeredSpecs = new LinkedHashMap();
     }

Modified: jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/cookie/params/CookieSpecParams.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/cookie/params/CookieSpecParams.java?view=diff&rev=527903&r1=527902&r2=527903
==============================================================================
--- jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/cookie/params/CookieSpecParams.java
(original)
+++ jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/cookie/params/CookieSpecParams.java
Thu Apr 12 05:42:35 2007
@@ -105,7 +105,7 @@
     }
     
     /**
-     * Assigns the {@link org.apache.http.cookie.CookiePolicy cookie policy} to be used
+     * Assigns the {@link org.apache.http.cookie.CookieSpecRegistry cookie policy} to be
used
      * when executing a request based on these parameters.
      *
      * @param policy the cookie policy

Modified: jakarta/httpcomponents/httpclient/trunk/src/test/org/apache/http/cookie/TestCookiePolicy.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpclient/trunk/src/test/org/apache/http/cookie/TestCookiePolicy.java?view=diff&rev=527903&r1=527902&r2=527903
==============================================================================
--- jakarta/httpcomponents/httpclient/trunk/src/test/org/apache/http/cookie/TestCookiePolicy.java
(original)
+++ jakarta/httpcomponents/httpclient/trunk/src/test/org/apache/http/cookie/TestCookiePolicy.java
Thu Apr 12 05:42:35 2007
@@ -45,7 +45,7 @@
 import org.apache.http.params.HttpParams;
 
 /**
- * Test cases for {@link CookiePolicy}.
+ * Test cases for {@link CookieSpecRegistry}.
  */
 public class TestCookiePolicy extends TestCase {
 
@@ -63,7 +63,7 @@
     }
 
     public void testRegisterUnregisterCookieSpecFactory() {
-        CookiePolicy registry  = CookiePolicy.DEFAULT; 
+        CookieSpecRegistry registry  = CookieSpecRegistry.DEFAULT; 
         List names = registry.getSpecNames();
         assertNotNull(names);
         assertEquals(0, names.size());
@@ -98,7 +98,7 @@
     }
 
     public void testGetNewCookieSpec() {
-        CookiePolicy registry  = CookiePolicy.DEFAULT; 
+        CookieSpecRegistry registry  = CookieSpecRegistry.DEFAULT; 
         registry.register(CookieSpecParams.BROWSER_COMPATIBILITY, 
                 new BrowserCompatSpecFactory());
         registry.register(CookieSpecParams.NETSCAPE, 
@@ -131,7 +131,7 @@
     }
 
     public void testInvalidInput() {
-        CookiePolicy registry  = CookiePolicy.DEFAULT; 
+        CookieSpecRegistry registry  = CookieSpecRegistry.DEFAULT; 
         try {
             registry.register(null, null);
             fail("IllegalArgumentException should have been thrown");



Mime
View raw message