public class RomeAdapter extends Object implements INewsAdapter
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
RomeAdapter() |
| Modifier and Type | Method and Description |
|---|---|
NewsFeed |
getSyndFeed(NewsConfiguration config,
javax.portlet.PortletRequest request) |
protected NewsFeed |
getSyndFeed(String url,
String titlePolicy,
String descriptionPolicy)
Retrieve the entire feed using HTTPClient and clean using AntiSamy,
build an SyndFeed object using ROME.
|
void |
setCache(net.sf.ehcache.Cache cache) |
void |
setProcessor(RomeNewsProcessorImpl processor) |
void |
setProxyHost(String proxyHost) |
void |
setProxyPort(String proxyPort) |
public void setProxyHost(String proxyHost)
public void setProxyPort(String proxyPort)
public void setProcessor(RomeNewsProcessorImpl processor)
public NewsFeed getSyndFeed(NewsConfiguration config, javax.portlet.PortletRequest request) throws NewsException
getSyndFeed in interface INewsAdapterNewsExceptionprotected NewsFeed getSyndFeed(String url, String titlePolicy, String descriptionPolicy) throws NewsException
url - String of the feed to be retrievedpolicyFile - String the cleaning policyNewsExceptionpublic void setCache(net.sf.ehcache.Cache cache)
Copyright © 2009-2013 Jasig. All Rights Reserved.