package org.archive.wayback.accesscontrol.robotstxt;

import org.archive.wayback.accesscontrol.ExclusionFilterFactory;
import org.archive.wayback.resourceindex.filters.ExclusionFilter;

public class RedisRobotExclusionFilterFactory implements ExclusionFilterFactory {
	
	private RedisRobotsCache cache;
	private String userAgent;
	private boolean cacheFails;

	public RedisRobotsCache getCache() {
		return cache;
	}

	public void setCache(RedisRobotsCache cache) {
		this.cache = cache;
	}

	public String getUserAgent() {
		return userAgent;
	}

	public void setUserAgent(String userAgent) {
		this.userAgent = userAgent;
	}

	@Override
	public ExclusionFilter get() {
		return new RedisRobotExclusionFilter(cache, userAgent, cacheFails);
	}

	@Override
	public void shutdown() {
		this.cache.shutdown();	
	}
}

@@ -617,24 +617,167 @@
 rAgent;%0A%09%7D%0A%0A
+%09public boolean isCacheFails() %7B%0A%09%09return cacheFails;%0A%09%7D%0A%0A%09public void setCacheFails(boolean cacheFails) %7B%0A%09%09this.cacheFails = cacheFails;%0A%09%7D%0A%0A
 %09@Override%0A%09

add missing accessor