Package it.unimi.dsi.law.warc.util
-
Interface Summary Interface Description DigestBasedDuplicateDetection Allows to determine if anHttpResponse
is duplicate.HttpResponse Provides high level access to WARC records withrecord-type
equal toresponse
andcontent-type
equal toHTTP
(orHTTPS
).Response Provides high level access to WARC records withrecord-type
equal toresponse
. -
Class Summary Class Description AbstractHttpResponse An abstract implementation ofHttpResponse
providing aAbstractHttpResponse.toWarcRecord(WarcRecord)
method that can be used to populate a WARC record (in order to write it).ByteArrayCharSequence An adapter exposing a byte array as an ISO-8859-1-encoded character sequence.HttpComponentsHttpResponse An concrete subclass ofAbstractHttpResponse
that implements missing methods by wrapping an Apache HTTP ComponentsHttpResponse
.HttpComponentsHttpResponse.HttpResponseHeaderMap A wrapper class exposing headers inHttpResponse.headers()
format by delegating to anHttpResponse
.MetadataHttpResponse An abstract extention ofAbstractHttpResponse
which additionally provides support for getting and setting metadata (i.e.,MetadataHttpResponse.uri()
,MetadataHttpResponse.statusLine()
,MetadataHttpResponse.status()
andMetadataHttpResponse.headers()
).MetadataHttpResponse.HeaderMap A special map used for headers: keys are case-insensitive, and multiple puts are converted into comma-separated values.MutableHttpResponse A mutable extension ofMetadataHttpResponse
that provides support for setting the content stream.RemappedStringMap Util Static utility methods.WarcHttpResponse AnAbstractHttpResponse
implementation that reads the response content from a WARC record (via theWarcHttpResponse.fromWarcRecord(WarcRecord)
method.