org.apache.http.impl.client.cache
Class URIExtractor

java.lang.Object
  extended by org.apache.http.impl.client.cache.URIExtractor

@Immutable
public class URIExtractor
extends Object

Since:
4.1

Constructor Summary
URIExtractor()
           
 
Method Summary
protected  String getFullHeaderValue(Header[] headers)
           
 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
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URIExtractor

public URIExtractor()
Method Detail

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 request
req - 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 request
req - 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.