hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1045389 - /httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/Variant.java
Date Mon, 13 Dec 2010 22:14:07 GMT
Author: jonm
Date: Mon Dec 13 22:14:07 2010
New Revision: 1045389

URL: http://svn.apache.org/viewvc?rev=1045389&view=rev
Log:
HTTPCLIENT-1032: added a Variant class to track a set of related
information about a particular cached variant.

Added:
    httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/Variant.java

Added: httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/Variant.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/Variant.java?rev=1045389&view=auto
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/Variant.java
(added)
+++ httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/Variant.java
Mon Dec 13 22:14:07 2010
@@ -0,0 +1,29 @@
+package org.apache.http.impl.client.cache;
+
+import org.apache.http.client.cache.HttpCacheEntry;
+
+/** Records a set of information describing a cached variant. */
+class Variant {
+
+	private final String variantKey;
+	private final String cacheKey;
+	private final HttpCacheEntry entry;
+
+	public Variant(String variantKey, String cacheKey, HttpCacheEntry entry) {
+		this.variantKey = variantKey;
+		this.cacheKey = cacheKey;
+		this.entry = entry;
+	}
+
+	public String getVariantKey() {
+		return variantKey;
+	}
+	
+	public String getCacheKey() {
+		return cacheKey;
+	}
+	
+	public HttpCacheEntry getEntry() {
+		return entry;
+	}
+}



Mime
View raw message