Interface ResultPage

All Known Implementing Classes:
ErrorResultPage, SuccessResultPage

public sealed interface ResultPage permits SuccessResultPage, ErrorResultPage
The ResultPage interface represents a result page obtained during web crawling. It is sealed and permits specific implementations: SuccessResultPage and ErrorResultPage.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the content of the result page.
    uri()
    Returns the URI of the result page.
  • Method Details

    • uri

      String uri()
      Returns the URI of the result page.
      Returns:
      The URI of the result page.
    • content

      String content()
      Returns the content of the result page.
      Returns:
      The content of the result page.