org.apache.nutch.fetcher

## Class FetchItem

- java.lang.Object
- - org.apache.nutch.fetcher.FetchItem

-     public class FetchItem
      extends java.lang.Object

  This class describes the item to be fetched.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FetchItem(Text url, java.net.URL u, CrawlDatum datum, java.lang.String queueID)`
    `FetchItem(Text url, java.net.URL u, CrawlDatum datum, java.lang.String queueID, int outlinkDepth)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static FetchItem` | `create(Text url, CrawlDatum datum, java.lang.String queueMode)` Create an item.
    `static FetchItem` | `create(Text url, CrawlDatum datum, java.lang.String queueMode, int outlinkDepth)`
    `CrawlDatum` | `getDatum()`
    `java.lang.String` | `getQueueID()`
    `Text` | `getUrl()`
    `java.net.URL` | `getURL2()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### FetchItem

          public FetchItem(Text url,
                           java.net.URL u,
                           CrawlDatum datum,
                           java.lang.String queueID)

    - #### FetchItem

          public FetchItem(Text url,
                           java.net.URL u,
                           CrawlDatum datum,
                           java.lang.String queueID,
                           int outlinkDepth)

  - ### Method Detail

    - #### create

          public static FetchItem create(Text url,
                                         CrawlDatum datum,
                                         java.lang.String queueMode)

      Create an item. Queue id will be created based on `queueMode` argument, either as a protocol + hostname pair, protocol + IP address pair or protocol+domain pair.

    - #### create

          public static FetchItem create(Text url,
                                         CrawlDatum datum,
                                         java.lang.String queueMode,
                                         int outlinkDepth)

    - #### getDatum

          public CrawlDatum getDatum()

    - #### getQueueID

          public java.lang.String getQueueID()

    - #### getUrl

          public Text getUrl()

    - #### getURL2

          public java.net.URL getURL2()

Copyright © 2019 The Apache Software Foundation