org.apache.archiva.policies.urlcache
Class DefaultUrlFailureCache
java.lang.Object
org.apache.archiva.policies.urlcache.DefaultUrlFailureCache
- All Implemented Interfaces:
- UrlFailureCache
public class DefaultUrlFailureCache
- extends Object
- implements UrlFailureCache
DefaultUrlFailureCache
- Version:
- $Id: DefaultUrlFailureCache.java 1171444 2011-09-16 08:34:11Z olamy $
| 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(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(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.
Copyright © 2006-2011 The Apache Software Foundation. All Rights Reserved.