@Override public String getRefersToDate() { return source.getRefersToDate(); } }
@Override public String getRefersToDate() { return source.getRefersToDate(); } }
String payloadTimestamp = revisitRecord.getRefersToDate();
String payloadTimestamp = revisitRecord.getRefersToDate();
if (res.getRefersToDate() != null) { String refTimestamp = res.getRefersToDate(); for (CaptureSearchResult r : results.getResults()) { if (r.getCaptureTimestamp().equals(refTimestamp)) {
public void testUrlAgnosticRevisitRecord() throws Exception { final String ctype = "text/html"; WARCRecordInfo recinfo = TestWARCRecordInfo .createUrlAgnosticRevisitHttpResponse(ctype, 1345); Resource res = createResource(recinfo); res.parseHeaders(); // these are from this record. assertEquals("statusCode", 200, res.getStatusCode()); assertEquals("content-type", ctype, res.getHeader("Content-Type")); assertEquals("http://example.com/", res.getRefersToTargetURI()); assertEquals("20140101101010", res.getRefersToDate()); StandardCharsetDetector csd = new StandardCharsetDetector(); // assuming WaybackRequest (3rd parameter) is not used in getCharset() csd.getCharset(res, res, null); res.close(); }