org.apache.droids.parse
Class Outlink

Package class diagram package Outlink
java.lang.Object
  extended by org.apache.droids.parse.Outlink
All Implemented Interfaces:
Task

public class Outlink
extends Object
implements Task

An outlink that implements the task interface.


Constructor Summary
Outlink(String toUrl, int depth2)
          Create a new instance for the given parameters.
Outlink(String toUrl, String anchor, int depth2)
          Create a new instance for the given parameters.
 
Method Summary
 String getAnchor()
          Get the anchor url.
 int getDepth()
          Which is the depth of the current task.
 String getId()
          The id of the task.
 String getTaskDate()
          When did the task showed up the first time in the queue
 String getToUrl()
          Get the destination url.
 void setDepth(int depth)
          The limit of nested task extractions we want to allow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Outlink

public Outlink(String toUrl,
               String anchor,
               int depth2)
Create a new instance for the given parameters.

Parameters:
toUrl - the destination url
anchor - the anchor
depth2 - the depth of the link

Outlink

public Outlink(String toUrl,
               int depth2)
Create a new instance for the given parameters.

Parameters:
toUrl - the destination url
depth2 - the depth of the link
Method Detail

getToUrl

public String getToUrl()
Get the destination url.

Returns:
the destination url.

getAnchor

public String getAnchor()
Get the anchor url.

Returns:
the anchor url.

getId

public 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 String getTaskDate()
Description copied from interface: Task
When did the task showed up the first time in the queue

Specified by:
getTaskDate in interface Task
Returns:
the date when the task registered with the queue

getDepth

public int getDepth()
Description copied from interface: Task
Which is the depth of the current task.

Specified by:
getDepth in interface Task
Returns:
the depth of the current tas

setDepth

public void setDepth(int depth)
Description copied from interface: Task
The limit of nested task extractions we want to allow

Specified by:
setDepth in interface Task
Parameters:
depth - limit of nested task extractions


Copyright © 2008 The Apache Software Foundation