Class WarcRequest
java.lang.Object
org.netpreserve.jwarc.Message
org.netpreserve.jwarc.WarcRecord
org.netpreserve.jwarc.WarcTargetRecord
org.netpreserve.jwarc.WarcCaptureRecord
org.netpreserve.jwarc.WarcRequest
-
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> -
Method Summary
Methods inherited from class org.netpreserve.jwarc.WarcCaptureRecord
concurrentTo, ipAddressMethods 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
-
Method Details
-
http
Parses the content body of this record as HTTP request.This is a convenience method for
HttpRequest.parse(request.body()).- Throws:
IOException
-
payloadType
Description copied from class:WarcCaptureRecordContent-Type of the payload.- Overrides:
payloadTypein classWarcCaptureRecord- Throws:
IOException
-
payload
Description copied from class:WarcTargetRecordReturns the payload of this record if one is present.This method returns an empty optional when the payload is undefined for this record type or if this library does not know how to parse the body in order to extract the payload. If the payload is well defined but happens to be zero bytes in length this method still returns a WarcPayload object.
- Overrides:
payloadin classWarcTargetRecord- Throws:
IOException
-