X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=crawler%2Fbasic%2Fsrc%2Forg%2Fwamblee%2Fcrawler%2Fimpl%2FPageTypeConfig.java;h=b7fa5a3c7b62fd67d344dd6a2951d5b2f4fab647;hb=071ee3b92d229ef0725928e19820fcd1084d11a0;hp=08ef1605cf51e733422dd3a4d8c5227601c8e0e2;hpb=81bc61121a8f17f754fc99eb66603a59df242ddc;p=utils diff --git a/crawler/basic/src/org/wamblee/crawler/impl/PageTypeConfig.java b/crawler/basic/src/org/wamblee/crawler/impl/PageTypeConfig.java index 08ef1605..b7fa5a3c 100644 --- a/crawler/basic/src/org/wamblee/crawler/impl/PageTypeConfig.java +++ b/crawler/basic/src/org/wamblee/crawler/impl/PageTypeConfig.java @@ -19,14 +19,24 @@ package org.wamblee.crawler.impl; import org.wamblee.crawler.PageRequest; /** - * + * Page type configuration. */ public class PageTypeConfig extends ConfigItem { + /** + * Constructs the configuration. + * @param aPattern Page type pattern. + * @param aRequest Page request. + */ public PageTypeConfig(String aPattern, PageRequest aRequest) { super(aPattern, aRequest); } + /** + * Returns the request in case the type matches. + * @param aType Page type. + * @return Request if the type matches, null otherwise. + */ public PageRequest getRequest(String aType) { return match(aType); }