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
    boolean fromWarcRecord​(WarcRecord record)
    Fills this response with the content of a WarcRecord (optional operation).
    URI uri()
    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

      boolean fromWarcRecord​(WarcRecord record) throws IOException
      Fills this response with the content of a WarcRecord (optional operation).
      Parameters:
      record - the record.
      Returns:
      true iff the record-type of the given record is response.
      Throws:
      IOException