X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=crawler%2Fbasic%2Fsrc%2Forg%2Fwamblee%2Fcrawler%2FPageRequest.java;h=be729069864b1f5e581de8d49def2a3771e60a40;hb=5685a836b9208ff8babfe5ac5b30c5f86d27cf96;hp=cf88bbf878a756303a157f56632f8badb1837d7a;hpb=81bc61121a8f17f754fc99eb66603a59df242ddc;p=utils diff --git a/crawler/basic/src/org/wamblee/crawler/PageRequest.java b/crawler/basic/src/org/wamblee/crawler/PageRequest.java index cf88bbf8..be729069 100644 --- a/crawler/basic/src/org/wamblee/crawler/PageRequest.java +++ b/crawler/basic/src/org/wamblee/crawler/PageRequest.java @@ -17,6 +17,7 @@ package org.wamblee.crawler; import org.apache.commons.httpclient.HttpClient; +import org.apache.commons.httpclient.NameValuePair; import org.w3c.dom.Document; /** @@ -25,14 +26,18 @@ import org.w3c.dom.Document; public interface PageRequest { /** - * Gets a page as an XML document. + * Gets a page as an XML document. + * @param aUrl Url of the page. + * @param aParams Additional parameters to supply. * @param aClient Http client to use. * @return Client. + * @throws PageException In case of problems retrieving the page. */ - Document execute(String aUrl, HttpClient aClient); + Document execute(String aUrl, NameValuePair[] aParams, HttpClient aClient) throws PageException; /** - * Overrides the Xslt to use. + * Overrides the Xslt to use. This is used when the transformed page specifies + * the page type explicitly for an action. * @param aXslt Xslt to use. */ void overrideXslt(String aXslt);