org.apache.archiva.policies.urlcache
Interface UrlFailureCache

All Known Implementing Classes:
DefaultUrlFailureCache

public interface UrlFailureCache

Cache for requested URLs that cannot be fetched.


Method Summary
 void cacheFailure(String url)
          Store a URL in the cache as failed.
 boolean hasFailedBefore(String url)
          Test if a specified URL has failed before.
 

Method Detail

cacheFailure

void cacheFailure(String url)
Store a URL in the cache as failed.

Parameters:
url - the url to store.

hasFailedBefore

boolean hasFailedBefore(String url)
Test if a specified URL has failed before. NOTE: If the provided URL has failed, then making this call should refresh the expiration time on that URL entry.

Parameters:
url - the URL to test.
Returns:
true if it has failed before, false if not.


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.