Call the CasCrawler.getCrawlConfig() method to retrieve the configuration settings of a crawl.

The syntax of the method is:

CasCrawler.getCrawlConfig(CrawlId crawlId, Boolean fillInDefaults)

Where:

If you retrieve a crawl configuration that contains a ModuleProperty for a password property, the crawl configuration retrieves the value as a zero length list.

The method returns a CrawlConfig object, which contains the following:

To get the configuration settings of a crawl:

The CasCrawler.getCrawlConfig() method throws a CrawlNotFoundException if the specified crawl (the crawlId parameter) does not exist or is otherwise not found. To catch an exception, use a try block with the appropriate catch clause.

Note that for CMS crawls (which require a username and password), the retrieved password will be returned as a null value from the server.


Copyright © Legal Notices