Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.stanfy.enroscar.net.cache;
 
 import java.net.URI;
Enhanced response cache.

Author(s):
Roman Mazur (Stanfy - http://stanfy.com)
public interface EnhancedResponseCache {
  CacheResponse get(final URI uriURLConnection connectionthrows IOException;

  
Delete an entry obtained though GET request, so that it can be identified by URL only. This method can be used for fine-tuned cache control.

Parameters:
url entry URL
Returns:
whether entry was removed
Throws:
java.io.IOException in case of disk cache operation error
  boolean deleteGetEntry(final String urlthrows IOException;

  

Parameters:
url content URL
Returns:
true if image for specified URL exists in cache
  boolean contains(final String url);

  

Parameters:
url content URL
Returns:
path to the local file with cached content or null of this content is not cached
  String getLocalPath(final String url);
New to GrepCode? Check out our FAQ X