@Override public String getRefersToTargetURI() { return source.getRefersToTargetURI(); }
@Override public String getRefersToTargetURI() { return source.getRefersToTargetURI(); }
String payloadUri = revisitRecord.getRefersToTargetURI(); String payloadTimestamp = revisitRecord.getRefersToDate();
String payloadUri = revisitRecord.getRefersToTargetURI(); String payloadTimestamp = revisitRecord.getRefersToDate();
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(); }