This project has retired. For details please refer to its Attic page.
DefaultUrlFailureCache

org.apache.maven.archiva.policies.urlcache
Class DefaultUrlFailureCache

Package class diagram package DefaultUrlFailureCache
java.lang.Object
  extended by org.apache.maven.archiva.policies.urlcache.DefaultUrlFailureCache
All Implemented Interfaces:
UrlFailureCache

public class DefaultUrlFailureCache
extends java.lang.Object
implements UrlFailureCache

DefaultUrlFailureCache


Constructor Summary
DefaultUrlFailureCache(org.codehaus.plexus.cache.Cache urlCache)
           
 
Method Summary
 void cacheFailure(java.lang.String url)
          Store a URL in the cache as failed.
 boolean hasFailedBefore(java.lang.String url)
          Test if a specified URL has failed before.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultUrlFailureCache

public DefaultUrlFailureCache(org.codehaus.plexus.cache.Cache urlCache)
Method Detail

cacheFailure

public void cacheFailure(java.lang.String url)
Description copied from interface: UrlFailureCache
Store a URL in the cache as failed.

Specified by:
cacheFailure in interface UrlFailureCache
Parameters:
url - the url to store.

hasFailedBefore

public boolean hasFailedBefore(java.lang.String url)
Description copied from interface: UrlFailureCache
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.

Specified by:
hasFailedBefore in interface UrlFailureCache
Parameters:
url - the URL to test.
Returns:
true if it has failed before, false if not.