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);
}