Interface PageInsightRequest

    • Method Detail

      • 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