/** * same with {@link #getDuplicateDigestStoredDate()}, but * returns raw timestamp value. * @return string representing timestamp. */ public String getDuplicateDigestStoredTimestamp() { if (isRevisitDigest()) { return get(CAPTURE_DUPLICATE_STORED_TS); } return null; }
/** * same with {@link #getDuplicateDigestStoredDate()}, but * returns raw timestamp value. * @return string representing timestamp. */ public String getDuplicateDigestStoredTimestamp() { if (isRevisitDigest()) { return get(CAPTURE_DUPLICATE_STORED_TS); } return null; }
/** * whether this capture is a re-fetch of previously archived capture * (<i>revisit</i>), detected by content's digest, and replay of * that previous capture is not blocked. * <p>1.8.1 2014-10-02 behavior change. This method now returns * {@code false} even for revisits, if the original capture * is blocked. Use #isRevisitDigest() for old behavior.</p> * @return {@code true} if revisit */ public boolean isDuplicateDigest() { if (!isRevisitDigest()) return false; CaptureSearchResult orig = getDuplicatePayload(); if (orig != null && orig.isRobotFlagSet(CaptureSearchResult.CAPTURE_ROBOT_BLOCKED)) return false; return true; }
/** * {@code true} if HTTP response code is either {@code 4xx} or {@code 5xx}. * @return */ public boolean isHttpError() { if (isRevisitDigest() && (getDuplicatePayload() != null)) { return getDuplicatePayload().isHttpError(); } String httpCode = getHttpCode(); return (httpCode.startsWith("4") || httpCode.startsWith("5")); }
/** * whether this capture is a re-fetch of previously archived capture * (<i>revisit</i>), detected by content's digest, and replay of * that previous capture is not blocked. * <p>1.8.1 2014-10-02 behavior change. This method now returns * {@code false} even for revisits, if the original capture * is blocked. Use #isRevisitDigest() for old behavior.</p> * @return {@code true} if revisit */ public boolean isDuplicateDigest() { if (!isRevisitDigest()) return false; CaptureSearchResult orig = getDuplicatePayload(); if (orig != null && orig.isRobotFlagSet(CaptureSearchResult.CAPTURE_ROBOT_BLOCKED)) return false; return true; }
/** * {@code true} if HTTP response code is either {@code 4xx} or {@code 5xx}. * @return */ public boolean isHttpError() { if (isRevisitDigest() && (getDuplicatePayload() != null)) { return getDuplicatePayload().isHttpError(); } String httpCode = getHttpCode(); return (httpCode.startsWith("4") || httpCode.startsWith("5")); }
/** * {@code true} if HTTP response code is {@code 2xx}. * @return */ public boolean isHttpSuccess() { if (isRevisitDigest() && (getDuplicatePayload() != null)) { return getDuplicatePayload().isHttpSuccess(); } String httpCode = getHttpCode(); return (httpCode.startsWith("2")); } }
/** * {@code true} if HTTP response code is {@code 3xx}. * @return */ public boolean isHttpRedirect() { if (isRevisitDigest() && (getDuplicatePayload() != null)) { return getDuplicatePayload().isHttpRedirect(); } String httpCode = getHttpCode(); return (httpCode.startsWith("3")); }
/** * {@code true} if HTTP response code is {@code 2xx}. * @return */ public boolean isHttpSuccess() { if (isRevisitDigest() && (getDuplicatePayload() != null)) { return getDuplicatePayload().isHttpSuccess(); } String httpCode = getHttpCode(); return (httpCode.startsWith("2")); } }
public Date getDuplicateDigestStoredDate() { if (isRevisitDigest() && get(CAPTURE_DUPLICATE_STORED_TS) != null) { return tsToDate(get(CAPTURE_DUPLICATE_STORED_TS)); } return null; }
/** * {@code true} if HTTP response code is {@code 3xx}. * @return */ public boolean isHttpRedirect() { if (isRevisitDigest() && (getDuplicatePayload() != null)) { return getDuplicatePayload().isHttpRedirect(); } String httpCode = getHttpCode(); return (httpCode.startsWith("3")); }
public Date getDuplicateDigestStoredDate() { if (isRevisitDigest() && get(CAPTURE_DUPLICATE_STORED_TS) != null) { return tsToDate(get(CAPTURE_DUPLICATE_STORED_TS)); } return null; }
ResourceNotAvailableException { if (!closest.isRevisitDigest()) { LOGGER.warning("Revisit: record is not a revisit by identical content digest " + closest.getCaptureTimestamp() + " " + closest.getOriginalUrl()); return null;
ResourceNotAvailableException { if (!closest.isRevisitDigest()) { LOGGER.warning("Revisit: record is not a revisit by identical content digest " + closest.getCaptureTimestamp() + " " + closest.getOriginalUrl()); return null;
if (closest.isRevisitDigest()) { isRevisit = true;
if (closest.isRevisitDigest()) { isRevisit = true;