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:
parent
0b5e40c11d
commit
6e5139df32
29
httpclient-cache/src/main/java/org/apache/http/impl/client/cache/Variant.java
vendored
Normal file
29
httpclient-cache/src/main/java/org/apache/http/impl/client/cache/Variant.java
vendored
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue