net.vidageek.crawler.visitor
Class DoesNotFollowVisitedUrlVisitor

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

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

Author:
jonasabreu

Constructor Summary
DoesNotFollowVisitedUrlVisitor(java.lang.String beginUrl, PageVisitor visitor)
           
 
Method Summary
 boolean followUrl(Url url)
           
 void onError(Url url, 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

DoesNotFollowVisitedUrlVisitor

public DoesNotFollowVisitedUrlVisitor(java.lang.String beginUrl,
                                      PageVisitor visitor)
Method Detail

followUrl

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

onError

public void onError(Url url,
                    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.