(no commit message)
[utils] / crawler / basic / src / org / wamblee / crawler / impl / PageTypeConfig.java
index 08ef1605cf51e733422dd3a4d8c5227601c8e0e2..b7fa5a3c7b62fd67d344dd6a2951d5b2f4fab647 100644 (file)
@@ -19,14 +19,24 @@ package org.wamblee.crawler.impl;
 import org.wamblee.crawler.PageRequest;
 
 /**
- * 
+ * Page type configuration. 
  */
 public class PageTypeConfig extends ConfigItem<PageRequest> {
     
+    /**
+     * 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);
     }