Package it.unimi.dsi.law.warc.util
Interface Response
- All Known Subinterfaces:
HttpResponse
- All Known Implementing Classes:
AbstractHttpResponse,HttpComponentsHttpResponse,MetadataHttpResponse,MutableHttpResponse,WarcHttpResponse
public interface Response
Provides high level access to WARC records with
record-type equal to
response.-
Method Summary
Modifier and Type Method Description booleanfromWarcRecord(WarcRecord record)Fills this response with the content of aWarcRecord(optional operation).URIuri()Returns the URI associated with this response.
-
Method Details
-
uri
URI uri()Returns the URI associated with this response.- Returns:
- the URI associated with this response.
-
fromWarcRecord
Fills this response with the content of aWarcRecord(optional operation).- Parameters:
record- the record.- Returns:
- true iff the
record-typeof the given record isresponse. - Throws:
IOException
-