public class FeedRetriever
extends java.lang.Object
This is the main entry point of the web feed integration utility. The web feed integration utility offers a solution to work with web feeds and retrieve new content or updated content from external Content Management Systems.
This is the class that is instantiated and called from the command line and the scheduler of the web feed integration utility.
It can also be invoked from a Java application. It can be called directly from another class by instantiating this class and invoking the method execute
.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXIT_CODE
The name of the parameter, exitCode, which will be in the return map from dataload.
|
static java.lang.String |
SUMMARY_REPORT
The name of the parameter, summaryReport, which will be in the return map form dataload.
|
static int |
VALIDATION_FAILURE
Deprecated.
it is not used.
|
Constructor and Description |
---|
FeedRetriever()
Default Constructor with no arguments.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map |
execute(java.lang.String configFile,
java.util.Map parameters)
This method runs the web feed retriever utility.
|
static void |
main(java.lang.String[] args)
This is a main entry point to run the web feed retriever through a command line.
|
public static final int VALIDATION_FAILURE
public static final java.lang.String EXIT_CODE
execute
method.public static final java.lang.String SUMMARY_REPORT
execute
method.public java.util.Map execute(java.lang.String configFile, java.util.Map parameters) throws com.ibm.commerce.foundation.dataload.exception.FeedConfigurationException, DataLoadException
configFile
- - the feed retriever configuration file.parameters
- - optional parameters to be passed to data load utility. This is a Map of name-value pairs, where name is the name of the parameter and value is the value of the parameter.com.ibm.commerce.foundation.dataload.exception.FeedConfigurationException
DataLoadException
public static void main(java.lang.String[] args)
This is a main entry point to run the web feed retriever through a command line.
Usage: com.ibm.commerce.foundation.dataload.FeedRetriever /full_path/CMS-Feed-config.xml [-Dname=value]* Parameter /full_path/CMS-Feed-config.xml is mandatory, parameters [-Dname=value]* are optional. Example: com.ibm.commerce.foundation.dataload.FeedRetriever ../bin/sample/CMS-Feed-config.xml -DXmlValidation=false
args
- The parameters passed into the program from the command line. The args
can contain the following parameters:
The parameter CMS-Feed-config.xml is the only mandatory parameter in toolkit environment. All other parameters are optional.