Class WarcRevisit
java.lang.Object
org.netpreserve.jwarc.Message
org.netpreserve.jwarc.WarcRecord
org.netpreserve.jwarc.WarcTargetRecord
org.netpreserve.jwarc.WarcCaptureRecord
org.netpreserve.jwarc.WarcRevisit
A WARC record describing a subsequent visitation of content previously archived. Typically used to indicate the
content had not changed and therefore a duplicate copy of it was not recorded.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.netpreserve.jwarc.WarcCaptureRecord
WarcCaptureRecord.AbstractBuilder<R extends WarcCaptureRecord,B extends WarcCaptureRecord.AbstractBuilder<R, B>> Nested classes/interfaces inherited from class org.netpreserve.jwarc.WarcRecord
WarcRecord.Constructor<R extends WarcRecord> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final URIWARC 1.0 revisit profile for when the payload content was the same as determined by a strong digest function.static final URIWARC 1.1 revisit profile for when the payload content was the same as determined by a strong digest function.static final URIWARC 1.0 revisit profile for when the server said the content had not changed.static final URIWARC 1.1 revisit profile for when the server said the content had not changed. -
Method Summary
Modifier and TypeMethodDescriptionhttp()Parses the HTTP response captured by this record.payload()Always returns Optional.empty().profile()The revisit profile explaining why this capture was written as a revisit record.refersTo()The record id of the original response or resource that was revisited.The date of the record this record is a revisit of.The target URI of the record this record is a revisit of.Methods inherited from class org.netpreserve.jwarc.WarcCaptureRecord
concurrentTo, ipAddress, payloadTypeMethods inherited from class org.netpreserve.jwarc.WarcTargetRecord
identifiedPayloadType, payloadDigest, target, targetURI, toString, warcinfoIDMethods inherited from class org.netpreserve.jwarc.WarcRecord
blockDigest, calculatedBlockDigest, date, id, segmentNumber, truncated, typeMethods inherited from class org.netpreserve.jwarc.Message
body, contentType, headers, serializeHeader, version
-
Field Details
-
IDENTICAL_PAYLOAD_DIGEST_1_0
WARC 1.0 revisit profile for when the payload content was the same as determined by a strong digest function. -
IDENTICAL_PAYLOAD_DIGEST_1_1
WARC 1.1 revisit profile for when the payload content was the same as determined by a strong digest function. -
SERVER_NOT_MODIFIED_1_0
WARC 1.0 revisit profile for when the server said the content had not changed. -
SERVER_NOT_MODIFIED_1_1
WARC 1.1 revisit profile for when the server said the content had not changed.
-
-
Method Details
-
http
Parses the HTTP response captured by this record.This is a convenience method for
HttpResponse.parse(revisit.body())).Note: Revisit records do not have a payload and therefore revisit.http().body() cannot be used.
- Throws:
IOException
-
payload
Always returns Optional.empty().- Overrides:
payloadin classWarcTargetRecord- Throws:
IOException
-
refersToTargetURI
-
refersToDate
-
profile
The revisit profile explaining why this capture was written as a revisit record. The standard profiles areIDENTICAL_PAYLOAD_DIGEST_1_0,IDENTICAL_PAYLOAD_DIGEST_1_1,SERVER_NOT_MODIFIED_1_0andSERVER_NOT_MODIFIED_1_1. -
refersTo
-