org.apache.http.impl.client.cache
Class URIExtractor
java.lang.Object
org.apache.http.impl.client.cache.URIExtractor
@Immutable
public class URIExtractor
- extends Object
- Since:
- 4.1
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URIExtractor
public URIExtractor()
getURI
public String getURI(HttpHost host,
HttpRequest req)
- For a given
HttpHost
and HttpRequest
get a URI from the
pair that I can use as an identifier KEY into my HttpCache
- Parameters:
host
- The host for this requestreq
- the HttpRequest
- Returns:
- String the extracted URI
getFullHeaderValue
protected String getFullHeaderValue(Header[] headers)
getVariantURI
public String getVariantURI(HttpHost host,
HttpRequest req,
CacheEntry entry)
- For a given
HttpHost
and HttpRequest
if the request has a
VARY header - I need to get an additional URI from the pair of host and
request so that I can also store the variant into my HttpCache.
- Parameters:
host
- The host for this requestreq
- the HttpRequest
entry
- the parent entry used to track the varients
- Returns:
- String the extracted variant URI
Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.