Accessing context parameters

From your Atom feed implementation class, you can access the values of context parameters that are defined in the Atom plug-in framework configuration file.

Context parameters are stored in the FeedContext object. You can obtain this object from the FeedConfig object that is passed to the init method.

For details of defining context parameters in the plug-in framework configuration file, refer to the context-param topic.

Example

The following example obtains the value of a context parameter called "version_number":
public void init(FeedConfig feedConfig) {
    
    FeedContext feedContext = feedConfig.getFeedContext();
    String versionNumber = feedContext.getContextParameter("version_number");

}