git://wamblee.org
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
checkstyleZZ
[utils]
/
crawler
/
basic
/
src
/
org
/
wamblee
/
crawler
/
impl
/
PageTypeConfig.java
diff --git
a/crawler/basic/src/org/wamblee/crawler/impl/PageTypeConfig.java
b/crawler/basic/src/org/wamblee/crawler/impl/PageTypeConfig.java
index 08ef1605cf51e733422dd3a4d8c5227601c8e0e2..b7fa5a3c7b62fd67d344dd6a2951d5b2f4fab647 100644
(file)
--- 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;
/**
import org.wamblee.crawler.PageRequest;
/**
- *
+ *
Page type configuration.
*/
public class PageTypeConfig extends ConfigItem<PageRequest> {
*/
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);
}
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);
}
public PageRequest getRequest(String aType) {
return match(aType);
}