|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.xml.dataCollection.rss.RSSDataSource
Implementation of IXMLDataSource
that acquires XML documents from an RSS Source. May contain a
set of IStringFilters
to apply to RSS data fields (for example for date conversion).
<XMLSource class="com.raritantechnologies.xml.dataCollection.RSSDataSource"
rssURL="[URL of rss channel]" >
<!-- Optional set of StringFilters to apply to data in rss data elements -->
<StringFilter class="[ class of com.raritantechnologies.utils.filter.IStringFilter ]"
tagName="[name or rss data tag to apply filter to ]" >
<!-- configuration parameters for string filter -->
</StringFilter>
<StringFilter class="[ class of com.raritantechnologies.utils.filter.IStringFilter ]"
tagName="[another rss data tag to apply filter to ]" >
<!-- configuration parameters for string filter -->
</StringFilter>
<!-- etc... -->
</XMLSource>
| Constructor Summary | |
RSSDataSource()
|
|
| Method Summary | |
void |
addStringFilterMap(java.lang.String tagName,
IStringFilter stringFilter)
|
org.w3c.dom.Document |
getNextResult()
returns next available document |
boolean |
hasMoreResults()
returns true if more results available, false otherwise |
void |
init(RaritanPageContext rpc)
Initialize the source. |
void |
initialize(org.w3c.dom.Element elem)
Initializes the object from an XML tag or element. |
void |
setRssURL(java.lang.String rssURL)
|
void |
setStringFilterMap(java.util.HashMap stringFilterMap)
|
void |
shutdown()
close all connections, or other application resources. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RSSDataSource()
| Method Detail |
public void init(RaritanPageContext rpc)
IXMLDataSource
init in interface IXMLDataSourcepublic boolean hasMoreResults()
IXMLDataSource
hasMoreResults in interface IXMLDataSourcepublic org.w3c.dom.Document getNextResult()
IXMLDataSource
getNextResult in interface IXMLDataSourcepublic void shutdown()
IXMLDataSource
shutdown in interface IXMLDataSourcepublic void initialize(org.w3c.dom.Element elem)
IConfigurable
initialize in interface IConfigurablepublic void setRssURL(java.lang.String rssURL)
public void setStringFilterMap(java.util.HashMap stringFilterMap)
public void addStringFilterMap(java.lang.String tagName,
IStringFilter stringFilter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||