|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.jperdian.rss2.RssClient
Implementation of a connector that can be used to read RSS channel data and transform them into a valid RSS DOM object
| Constructor Summary | |
RssClient(java.net.URL url)
Creates a new client that receives it's data from the given URL |
|
RssClient(java.net.URL url,
java.lang.String keywords,
java.lang.String title)
Creates a new client that receives it's data from the given URL |
|
| Method Summary | |
RssChannel |
getData()
Reads the data from the remote RSS source and create a new RssChannel object that contains the data that has been read |
java.lang.String |
getKeywords()
Gets the keywords to be used for sorting the current client |
protected RssParser |
getParser()
Gets the RssParser through which the messages are analyzed |
java.lang.String |
getTitle()
Gets the title to be used for sorting the current client |
java.net.URL |
getURL()
Gets the URL from which to read the data |
void |
loadData(RssChannel channel)
Loads the data into the given RssChannel |
protected void |
setKeywords(java.lang.String keywords)
Sets the keywords to be used for sorting the current client |
protected void |
setTitle(java.lang.String title)
Sets the title to be used for sorting the current client |
protected void |
setURL(java.net.URL url)
Sets the URL from which to read the data |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RssClient(java.net.URL url)
url - the URL from which to receive the data
public RssClient(java.net.URL url,
java.lang.String keywords,
java.lang.String title)
url - the URL from which to receive the datakeywords - the keywords that can later be used for sortingtitle - the title to be used for display| Method Detail |
public final RssChannel getData()
throws RssException
RssChannel object that contains the data that has been read
RssException - thrown if the data is not in valid RSS format or the connection
is unreachable
public void loadData(RssChannel channel)
throws RssException
RssChannel
RssExceptionprotected RssParser getParser()
RssParser through which the messages are analyzed
protected void setURL(java.net.URL url)
URL from which to read the data
public java.net.URL getURL()
URL from which to read the data
protected void setKeywords(java.lang.String keywords)
public java.lang.String getKeywords()
protected void setTitle(java.lang.String title)
public java.lang.String getTitle()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||