public class RomeAdapter extends AbstractNewsAdapter
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
RomeAdapter() |
| Modifier and Type | Method and Description |
|---|---|
long |
getConnectionManagerTimeout() |
int |
getConnectionTimeout() |
org.apache.http.impl.client.AbstractHttpClient |
getHttpClient() |
int |
getReadTimeout() |
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.
|
int |
getTimesToRetry() |
void |
init() |
void |
setCache(net.sf.ehcache.Cache cache) |
void |
setConnectionManagerTimeout(long connectionManagerTimeout) |
void |
setConnectionTimeout(int connectionTimeout) |
void |
setHttpClient(org.apache.http.impl.client.AbstractHttpClient httpClient) |
void |
setProcessor(RomeNewsProcessorImpl processor) |
void |
setProxyHost(String proxyHost) |
void |
setProxyPort(String proxyPort) |
void |
setReadTimeout(int readTimeout) |
void |
setTimesToRetry(int timesToRetry) |
getClassName, getDescriptionKey, getNameKeypublic org.apache.http.impl.client.AbstractHttpClient getHttpClient()
public void setHttpClient(org.apache.http.impl.client.AbstractHttpClient httpClient)
public void setProxyHost(String proxyHost)
public void setProxyPort(String proxyPort)
public int getConnectionTimeout()
public void setConnectionTimeout(int connectionTimeout)
public int getReadTimeout()
public void setReadTimeout(int readTimeout)
public long getConnectionManagerTimeout()
public void setConnectionManagerTimeout(long connectionManagerTimeout)
public int getTimesToRetry()
public void setTimesToRetry(int timesToRetry)
public void setProcessor(RomeNewsProcessorImpl processor)
public NewsFeed getSyndFeed(NewsConfiguration config, javax.portlet.PortletRequest request) throws NewsException
NewsExceptionprotected NewsFeed getSyndFeed(String url, String titlePolicy, String descriptionPolicy) throws NewsException
url - String of the feed to be retrievedtitlePolicy - String the cleaning policy for the titledescriptionPolicy - String the cleaning policy for the descriptionNewsExceptionpublic void setCache(net.sf.ehcache.Cache cache)
Copyright © 2009-2014 Jasig. All Rights Reserved.