Class FetchComponent

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    
    public class FetchComponent
     implements AutoCloseable
                        

    The fetch component is the portal to fetch the content of pages.

    • Constructor Detail

    • Method Detail

      • fetch

         final WebPage fetch(String url)

        Fetch a url

        Parameters:
        url - The url of web page to fetch
        Returns:

        The fetch result

      • fetch

         final WebPage fetch(String url, LoadOptions options)

        Fetch a url

        Parameters:
        url - The url of web page to fetch
        options - The options
        Returns:

        The fetch result

      • fetchContent

         final WebPage fetchContent(WebPage page)

        Fetch a page

        Parameters:
        page - The page to fetch
        Returns:

        The fetch result

      • fetchContent

         final WebPage fetchContent(FetchEntry fetchEntry)

        Fetch a page

        Parameters:
        fetchEntry - The fetch entry
        Returns:

        The fetch result

      • fetchContentDeferred

         final WebPage fetchContentDeferred(WebPage page)

        Fetch a page

        Parameters:
        page - The page to fetch
        Returns:

        The fetch result