X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=crawler%2Fbasic%2Fsrc%2Forg%2Fwamblee%2Fcrawler%2FCrawler.java;h=00d1283aeee1324705acf6661c07bd4ed30ddb80;hb=7053b12acef10ba6ee003e811b61d32f9c62f9f5;hp=07dff3fdb5f7d6c42dfd3feb43ebc30101466c29;hpb=a5a9deb2dedb2efc96972acedaa44909a3b0fd79;p=utils diff --git a/crawler/basic/src/org/wamblee/crawler/Crawler.java b/crawler/basic/src/org/wamblee/crawler/Crawler.java index 07dff3fd..00d1283a 100644 --- a/crawler/basic/src/org/wamblee/crawler/Crawler.java +++ b/crawler/basic/src/org/wamblee/crawler/Crawler.java @@ -18,7 +18,7 @@ package org.wamblee.crawler; /** - * Represents a crawled page. + * The object that actually obtains pages based on URL. */ public interface Crawler { @@ -26,6 +26,7 @@ public interface Crawler { * Gets the content for a specific page. * @param aUrl Url of page. * @return Page to retrieve. + * @throws PageException In case of problems retrieving the page. */ Page getPage(String aUrl) throws PageException; @@ -33,7 +34,8 @@ public interface Crawler { * Gets the content for a specific page. * @param aUrl Url of page. * @param aType Type of page. - * @return Page. + * @return Page. + * @throws PageException In case of problems retrieving the page. */ Page getPage(String aUrl, PageType aType) throws PageException; }