/** * return <i>robot flags</i> field value. * @return */ public String getRobotFlags() { return get(CAPTURE_ROBOT_FLAGS); }
public String getOriginalHost() { String host = get(CAPTURE_ORIGINAL_HOST); if (host == null) { host = UrlOperations.urlToHost(getOriginalUrl()); } return host; }
public String getOriginalHost() { String host = get(CAPTURE_ORIGINAL_HOST); if (host == null) { host = UrlOperations.urlToHost(getOriginalUrl()); } return host; }
@Override public String getCaptureTimestamp() { return get(CAPTURE_CAPTURE_TIMESTAMP); }
/** * return <i>robot flags</i> field value. * @return */ public String getRobotFlags() { return get(CAPTURE_ROBOT_FLAGS); }
/** * whether this capture is an archive of {@code 304 Not Modified} response * from the server. * @return */ public boolean isDuplicateHTTP() { String dupeType = get(CAPTURE_DUPLICATE_ANNOTATION); return (dupeType != null && dupeType.equals(CAPTURE_DUPLICATE_HTTP)); }
public long getOffset() { if (cachedOffset == -1) { cachedOffset = Long.parseLong(get(CAPTURE_OFFSET)); } return cachedOffset; }
public long getCompressedLength() { if (cachedCompressedLength == -1) { String tmp = get(CAPTURE_COMPRESSED_LENGTH); cachedCompressedLength = tmp == null ? -1 : Long.parseLong(tmp); } return cachedCompressedLength; }
/** * whether this capture is a re-fetch of previously archived capture * (<i>revisit</i>), detected by content's digest. * <p>This method is meant for use by replay processing. For use in * user interface / web API code, consider {@link #isDuplicateDigest()} * is more appropriate.</p> * @return {@code true} if revisit */ public boolean isRevisitDigest() { String dupeType = get(CAPTURE_DUPLICATE_ANNOTATION); return (dupeType != null && dupeType.equals(CAPTURE_DUPLICATE_DIGEST)); }
/** * whether this capture is an archive of {@code 304 Not Modified} response * from the server. * @return */ public boolean isDuplicateHTTP() { String dupeType = get(CAPTURE_DUPLICATE_ANNOTATION); return (dupeType != null && dupeType.equals(CAPTURE_DUPLICATE_HTTP)); }
/** * 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; }
public String getDuplicateHTTPStoredTimestamp() { if (isDuplicateHTTP()) { return get(CAPTURE_DUPLICATE_STORED_TS); } return null; }
public String getDuplicateHTTPStoredTimestamp() { if (isDuplicateHTTP()) { return get(CAPTURE_DUPLICATE_STORED_TS); } return null; }
public Date getDuplicateHTTPStoredDate() { if (isDuplicateHTTP()) { return tsToDate(get(CAPTURE_DUPLICATE_STORED_TS)); } return null; }
public Date getDuplicateHTTPStoredDate() { if (isDuplicateHTTP()) { return tsToDate(get(CAPTURE_DUPLICATE_STORED_TS)); } return null; }