HTTPCLIENT-1032: added a Variant class to track a set of related

information about a particular cached variant.


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1045389 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonathan Moore 2010-12-13 22:14:07 +00:00
parent 0b5e40c11d
commit 6e5139df32
1 changed files with 29 additions and 0 deletions

View File

@ -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;
}
}