org.apache.cocoon.bean.helpers
Class Crawler

java.lang.Object
  extended by org.apache.cocoon.bean.helpers.Crawler

public class Crawler
extends Object

A simple Cocoon crawler

Version:
CVS $Id: Crawler.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Upayavira

Nested Class Summary
static 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)
                       throws ProcessingException
Throws:
ProcessingException

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-2010 The Apache Software Foundation. All Rights Reserved.