X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=crawler%2Fbasic%2Fsrc%2Forg%2Fwamblee%2Fcrawler%2FCrawler.java;h=3615d9bc3a1e612e620725140a383fd17ac8e41b;hb=5685a836b9208ff8babfe5ac5b30c5f86d27cf96;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..3615d9bc 100644 --- a/crawler/basic/src/org/wamblee/crawler/Crawler.java +++ b/crawler/basic/src/org/wamblee/crawler/Crawler.java @@ -16,24 +16,30 @@ package org.wamblee.crawler; +import org.apache.commons.httpclient.NameValuePair; + /** - * Represents a crawled page. + * The object that actually obtains pages based on URL. */ public interface Crawler { /** * Gets the content for a specific page. * @param aUrl Url of page. + * @param aParameters Paremeters to supply. * @return Page to retrieve. + * @throws PageException In case of problems retrieving the page. */ - Page getPage(String aUrl) throws PageException; + Page getPage(String aUrl, NameValuePair[] aParameters) throws PageException; /** * Gets the content for a specific page. - * @param aUrl Url of page. + * @param aUrl Url of page. + * @param aParameters Parameters to supply. * @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; + Page getPage(String aUrl, NameValuePair[] aParameters, PageType aType) throws PageException; }