net.vidageek.crawler.visitor
Class RejectAtDepthVisitor

java.lang.Object
  extended by net.vidageek.crawler.visitor.RejectAtDepthVisitor
All Implemented Interfaces:
ContentVisitor, PageVisitor

public final class RejectAtDepthVisitor
extends java.lang.Object
implements PageVisitor

Author:
jonasabreu

Constructor Summary
RejectAtDepthVisitor(int depth, PageVisitor visitor)
           
 
Method Summary
 boolean followUrl(Url url)
           
 void onError(Url errorUrl, Status statusError)
           
 void visit(Page page)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RejectAtDepthVisitor

public RejectAtDepthVisitor(int depth,
                            PageVisitor visitor)
Method Detail

followUrl

public boolean followUrl(Url url)
Specified by:
followUrl in interface PageVisitor

onError

public void onError(Url errorUrl,
                    Status statusError)
Specified by:
onError in interface ContentVisitor

visit

public void visit(Page page)
Specified by:
visit in interface ContentVisitor


Copyright © 2008-2011 VidaGeek.net. All Rights Reserved.