Interface PageInsightRequest

All Superinterfaces:
InsightRequest

public interface PageInsightRequest extends InsightRequest
Represents an insight request
  • Method Details

    • getPage

      Page getPage()
      Gets the page backing this request
      Returns:
      the page
    • getPageBodyElement

      org.jsoup.nodes.Element getPageBodyElement() throws IOException
      Gets a JSoup Element of the body of the page, not the full page (e.g. no header).
      Returns:
      the HTML of the body
      Throws:
      IOException - an exception occurs retrieving the content
    • getPageBodyHtml

      String getPageBodyHtml() throws IOException
      Gets the HTML of the body of the page, not the full page (e.g. no header).
      Returns:
      the HTML of the body
      Throws:
      IOException - an exception occurs retrieving the content
    • getPageDocument

      org.jsoup.nodes.Document getPageDocument() throws IOException
      Gets the page HTML as a JSoup Document.
      Returns:
      the page HTML
      Throws:
      IOException - an exception occurs retrieving the content
    • getPageHtml

      String getPageHtml() throws IOException
      Gets the page HTML. Loads the HTML lazily so the initial request may take a bit but others will be quick.
      Returns:
      a string representation of the HTML for a page
      Throws:
      IOException - an exception occurs retrieving the content
    • getType

      default InsightRequest.TYPE getType()
      Description copied from interface: InsightRequest
      Get the type of this request.
      Specified by:
      getType in interface InsightRequest
      Returns:
      the type