public class WarcRevisit extends WarcCaptureRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
WarcRevisit.Builder |
WarcCaptureRecord.AbstractBuilder<R extends WarcCaptureRecord,B extends WarcCaptureRecord.AbstractBuilder<R,B>>WarcRecord.Constructor<R extends WarcRecord>| Modifier and Type | Field and Description |
|---|---|
static URI |
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.
|
static URI |
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.
|
static URI |
SERVER_NOT_MODIFIED_1_0
WARC 1.0 revisit profile for when the server said the content had not changed.
|
static URI |
SERVER_NOT_MODIFIED_1_1
WARC 1.1 revisit profile for when the server said the content had not changed.
|
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
http()
Parses the HTTP response captured by this record.
|
Optional<WarcPayload> |
payload()
Always returns Optional.empty().
|
URI |
profile()
The revisit profile explaining why this capture was written as a revisit record.
|
Optional<URI> |
refersTo()
The record id of the original response or resource that was revisited.
|
Optional<java.time.Instant> |
refersToDate()
The date of the record this record is a revisit of.
|
Optional<URI> |
refersToTargetURI()
The target URI of the record this record is a revisit of.
|
concurrentTo, ipAddress, payloadTypeidentifiedPayloadType, payloadDigest, target, targetURI, toString, warcinfoIDblockDigest, calculatedBlockDigest, date, id, segmentNumber, truncated, typebody, contentType, headers, serializeHeader, versionpublic static final URI IDENTICAL_PAYLOAD_DIGEST_1_0
public static final URI IDENTICAL_PAYLOAD_DIGEST_1_1
public static final URI SERVER_NOT_MODIFIED_1_0
public static final URI SERVER_NOT_MODIFIED_1_1
public HttpResponse http() throws IOException
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.
IOExceptionpublic Optional<WarcPayload> payload() throws IOException
payload in class WarcTargetRecordIOExceptionpublic Optional<URI> refersToTargetURI()
public Optional<java.time.Instant> refersToDate()
public URI profile()
IDENTICAL_PAYLOAD_DIGEST_1_0, IDENTICAL_PAYLOAD_DIGEST_1_1, SERVER_NOT_MODIFIED_1_0
and SERVER_NOT_MODIFIED_1_1.Copyright © 2024. All rights reserved.