This project has retired. For details please refer to its
Attic page .
DefaultUrlFailureCache
org.apache.maven.archiva.policies.urlcache
Class DefaultUrlFailureCache
java.lang.Object
org.apache.maven.archiva.policies.urlcache.DefaultUrlFailureCache
All Implemented Interfaces: UrlFailureCache
public class DefaultUrlFailureCache extends java.lang.Objectimplements UrlFailureCache
DefaultUrlFailureCache
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
DefaultUrlFailureCache
public DefaultUrlFailureCache (org.codehaus.plexus.cache.Cache urlCache)
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.