org.apache.cocoon.bean.helpers
Class Crawler

java.lang.Object
  extended byorg.apache.cocoon.bean.helpers.Crawler

public class Crawler
extends Object

A simple Cocoon crawler

Version:
CVS $Id: Crawler.java 179055 2005-05-30 14:08:23Z cziegeler $
Author:
Upayavira

Nested Class Summary
 class Crawler.CrawlingIterator
           
 
Constructor Summary
Crawler()
           
 
Method Summary
 boolean addTarget(Target target)
          Add a target for future processing
 void addTranslatedLink(Target target)
           
 int getProcessedCount()
           
 int getRemainingCount()
          Returns the number of targets for processing
 int getTranslatedCount()
           
 Target getTranslatedLink(Target link)
           
 boolean hasTranslatedLink(Target link)
           
 Crawler.CrawlingIterator iterator()
          Returns an iterator for reading targets
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Crawler

public Crawler()
Method Detail

addTarget

public boolean addTarget(Target target)
Add a target for future processing


getRemainingCount

public int getRemainingCount()
Returns the number of targets for processing


getProcessedCount

public int getProcessedCount()

getTranslatedCount

public int getTranslatedCount()

addTranslatedLink

public void addTranslatedLink(Target target)

hasTranslatedLink

public boolean hasTranslatedLink(Target link)

getTranslatedLink

public Target getTranslatedLink(Target link)

iterator

public Crawler.CrawlingIterator iterator()
Returns an iterator for reading targets



Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.