hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r980939 - in /httpcomponents/httpclient/trunk/httpclient-cache/src: main/java/org/apache/http/impl/client/cache/ test/java/org/apache/http/impl/client/cache/
Date Fri, 30 Jul 2010 20:20:29 GMT
Author: olegk
Date: Fri Jul 30 20:20:29 2010
New Revision: 980939

URL: http://svn.apache.org/viewvc?rev=980939&view=rev
Log:
Renamed BasicHttpCacheEntry to MemCacheEntry

Added:
    httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/MemCacheEntry.java
      - copied, changed from r980937, httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/BasicHttpCacheEntry.java
Removed:
    httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/BasicHttpCacheEntry.java
Modified:
    httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/BasicHttpCache.java
    httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CacheEntryGenerator.java
    httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CacheEntryUpdater.java
    httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/CacheEntry.java
    httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestResponseCache.java

Modified: httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/BasicHttpCache.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/BasicHttpCache.java?rev=980939&r1=980938&r2=980939&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/BasicHttpCache.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/BasicHttpCache.java
Fri Jul 30 20:20:29 2010
@@ -37,7 +37,7 @@ import org.apache.http.client.cache.Http
 /**
  * Basic {@link HttpCache} implementation backed by an instance of {@link LinkedHashMap}.
  * This cache does NOT deallocate resources associated with the cache entries. It is intended
- * for use with {@link BasicHttpCacheEntry} and similar.
+ * for use with {@link MemCacheEntry} and similar.
  *
  * @since 4.1
  */

Modified: httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CacheEntryGenerator.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CacheEntryGenerator.java?rev=980939&r1=980938&r2=980939&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CacheEntryGenerator.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CacheEntryGenerator.java
Fri Jul 30 20:20:29 2010
@@ -50,7 +50,7 @@ class CacheEntryGenerator {
             Date responseDate,
             HttpResponse response,
             byte[] body) {
-        return new BasicHttpCacheEntry(requestDate,
+        return new MemCacheEntry(requestDate,
                               responseDate,
                               response.getStatusLine(),
                               response.getAllHeaders(),
@@ -69,7 +69,7 @@ class CacheEntryGenerator {
         while ((len = instream.read(buf)) != -1) {
             outstream.write(buf, 0, len);
         }
-        return new BasicHttpCacheEntry(
+        return new MemCacheEntry(
                 entry.getRequestDate(),
                 entry.getResponseDate(),
                 entry.getStatusLine(),

Modified: httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CacheEntryUpdater.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CacheEntryUpdater.java?rev=980939&r1=980938&r2=980939&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CacheEntryUpdater.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CacheEntryUpdater.java
Fri Jul 30 20:20:29 2010
@@ -78,7 +78,7 @@ class CacheEntryUpdater {
         while ((len = instream.read(buf)) != -1) {
             outstream.write(buf, 0, len);
         }
-        HttpCacheEntry updated = new BasicHttpCacheEntry(requestDate, responseDate,
+        HttpCacheEntry updated = new MemCacheEntry(requestDate, responseDate,
                                             entry.getStatusLine(),
                                             mergedHeaders,
                                             outstream.toByteArray(),

Copied: httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/MemCacheEntry.java
(from r980937, httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/BasicHttpCacheEntry.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/MemCacheEntry.java?p2=httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/MemCacheEntry.java&p1=httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/BasicHttpCacheEntry.java&r1=980937&r2=980939&rev=980939&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/BasicHttpCacheEntry.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/MemCacheEntry.java
Fri Jul 30 20:20:29 2010
@@ -42,13 +42,13 @@ import org.apache.http.client.cache.Reso
  * explicit deallocation.
  */
 @Immutable
-public class BasicHttpCacheEntry extends HttpCacheEntry {
+public class MemCacheEntry extends HttpCacheEntry {
 
     private static final long serialVersionUID = -8464486112875881235L;
 
     private final byte[] body;
 
-    public BasicHttpCacheEntry(
+    public MemCacheEntry(
             final Date requestDate,
             final Date responseDate,
             final StatusLine statusLine,

Modified: httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/CacheEntry.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/CacheEntry.java?rev=980939&r1=980938&r2=980939&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/CacheEntry.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/CacheEntry.java
Fri Jul 30 20:20:29 2010
@@ -30,7 +30,7 @@ import java.util.Date;
 
 import org.apache.http.Header;
 
-public class CacheEntry extends BasicHttpCacheEntry {
+public class CacheEntry extends MemCacheEntry {
 
     private static final long serialVersionUID = 7964121802841871079L;
 

Modified: httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestResponseCache.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestResponseCache.java?rev=980939&r1=980938&r2=980939&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestResponseCache.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestResponseCache.java
Fri Jul 30 20:20:29 2010
@@ -144,7 +144,7 @@ public class TestResponseCache {
         cache.updateEntry("foo", new HttpCacheUpdateCallback() {
 
             public HttpCacheEntry update(HttpCacheEntry existing) {
-                HttpCacheEntry updated = new BasicHttpCacheEntry(
+                HttpCacheEntry updated = new MemCacheEntry(
                         existing.getRequestDate(),
                         existing.getRequestDate(),
                         existing.getStatusLine(),



Mime
View raw message