org.apache.droids
Class LinkTask

java.lang.Object
  extended by org.apache.droids.LinkTask
All Implemented Interfaces:
java.io.Serializable, Link, Task

public class LinkTask
extends java.lang.Object
implements Link, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
LinkTask(Link from, java.net.URI uri, int depth)
           
LinkTask(Link from, java.net.URI uri, int depth, int weight)
           
 
Method Summary
 java.lang.String getAnchorText()
           
 int getDepth()
           
 Link getFrom()
          From where the link was created
 java.lang.String getId()
          The id of the task.
 java.util.Date getLastModifedDate()
           
 java.util.Date getLastModifiedDate()
          last modified date
 java.util.Date getTaskDate()
          When was the task created
 java.util.Collection<java.net.URI> getTo()
          To where the link is pointing to
 java.net.URI getURI()
           
 int getWeight()
           
 void setAnchorText(java.lang.String anchorText)
           
 void setLastModifedDate(java.util.Date lastModifedDate)
           
 void setLinksTo(java.util.Collection<java.net.URI> linksTo)
           
 void setTaskDate(java.util.Date started)
           
 void setWeight(int weight)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkTask

public LinkTask(Link from,
                java.net.URI uri,
                int depth)

LinkTask

public LinkTask(Link from,
                java.net.URI uri,
                int depth,
                int weight)
Method Detail

getId

public java.lang.String getId()
Description copied from interface: Task
The id of the task. In a standard crawl that is most likely the url that identifies the task

Specified by:
getId in interface Task
Returns:
The id of the task

getTaskDate

public java.util.Date getTaskDate()
Description copied from interface: Task
When was the task created

Specified by:
getTaskDate in interface Task
Returns:
the date when the task was created.

setTaskDate

public void setTaskDate(java.util.Date started)

getDepth

public int getDepth()
Specified by:
getDepth in interface Task
Returns:
The depth of the task

getFrom

public Link getFrom()
Description copied from interface: Link
From where the link was created

Specified by:
getFrom in interface Link
Returns:
the parent link from where the link was coming from

getLastModifiedDate

public java.util.Date getLastModifiedDate()
Description copied from interface: Link
last modified date

Specified by:
getLastModifiedDate in interface Link
Returns:
last modified date

getTo

public java.util.Collection<java.net.URI> getTo()
Description copied from interface: Link
To where the link is pointing to

Specified by:
getTo in interface Link
Returns:
the location where the link is pointing to

getLastModifedDate

public java.util.Date getLastModifedDate()

setLastModifedDate

public void setLastModifedDate(java.util.Date lastModifedDate)

setLinksTo

public void setLinksTo(java.util.Collection<java.net.URI> linksTo)

getURI

public java.net.URI getURI()
Specified by:
getURI in interface Link
Returns:
the URI to this link

getAnchorText

public java.lang.String getAnchorText()
Specified by:
getAnchorText in interface Link
Returns:
the Anchor text for this link

setAnchorText

public void setAnchorText(java.lang.String anchorText)

getWeight

public int getWeight()

setWeight

public void setWeight(int weight)


Copyright © 2007-2009. All Rights Reserved.