code: public int filterObject(CaptureSearchResult r) {
  		String httpCode = r.getHttpCode();
  		// only filter real 3XX http response codes:
  		if(httpCode.startsWith("3")) {
  			String redirect = r.getRedirectUrl();
  			if(redirect.compareTo("-") != 0) {
  				String urlKey = r.getUrlKey();
  				try {
  					String redirectKey = canonicalizer.urlStringToKey(redirect);
  					if((redirectKey != null) && (urlKey != null) &&
  							(redirectKey.compareTo(urlKey) == 0)) {
  						// only omit if same scheme:
  						String origScheme = 
  							UrlOperations.urlToScheme(r.getOriginalUrl());
  						String redirScheme = 
  							UrlOperations.urlToScheme(redirect);
  						if((origScheme != null) && (redirScheme != null) &&
  								(origScheme.compareTo(redirScheme) == 0)) {
  							return FILTER_EXCLUDE;
  						}
  					}
  				} catch (URIException e) {
  					// emit message (is that right?) and continue
  					LOGGER.info("Bad redirectURL:" + redirect + 
  							" urlKey:"+ urlKey +
  							" date:"+ r.getCaptureTimestamp());
  				}
  			}
  		}
  		return FILTER_INCLUDE;
  	}
docs: /* (non-Javadoc)
  @see org.archive.wayback.util.ObjectFilter#filterObject(java.lang.Object)