Interface INewsAdapter
- All Known Implementing Classes:
AbstractNewsAdapter,RomeAdapter,RomeAdapterFullStory
public interface INewsAdapter
INewsAdapter interface.
- Since:
- 5.1.1
- Author:
- Anthony Colebourne
-
Method Summary
Modifier and TypeMethodDescriptionProvides the fully-qualified name of the concrete INewsAdapter class, which is used in creating aNewsDefinition.Provides the key string for accessing the description of this adapter from the messageBundle bean.Provides the key string for accessing the name of this adapter from the messageBundle bean.getSyndFeed(NewsConfiguration config, int page, int maxStories) getSyndFeed.
-
Method Details
-
getClassName
String getClassName()Provides the fully-qualified name of the concrete INewsAdapter class, which is used in creating aNewsDefinition.- Returns:
- concrete class name
- See Also:
-
getNameKey
String getNameKey()Provides the key string for accessing the name of this adapter from the messageBundle bean.- Returns:
- key string for this adaptor
-
getDescriptionKey
String getDescriptionKey()Provides the key string for accessing the description of this adapter from the messageBundle bean.- Returns:
- description for this adaptor
-
getSyndFeed
PaginatingNewsFeed getSyndFeed(NewsConfiguration config, int page, int maxStories) throws NewsException getSyndFeed.
- Parameters:
config- aNewsConfigurationobjectpage- a intmaxStories- a int- Returns:
- a
PaginatingNewsFeedobject - Throws:
NewsException- if any.
-