NewsReader adapters
RomeAdapter
This is the most widely-used feed adapter and is the only one currently available. The adaptor reads standard RSS and ATOM feeds available online via http or https. This adapter caches requests by URL. The feed uses Apache's HttpClient to access the HTTP service and has some configurable values for timeouts, with defaults set in the code so they are typically not needing changing. The bean definition allows a configurable feed processor and cache.
The news feeds are cleaned via AntiSamy to insure html characters and potentially harmful scripts are removed from the response before presenting data to the user. The following portlet preferences can be used to override the default values:
titlePolicy | Location of the AntiSamy policy file. File string includes a path starting at the application context; e.g. /WEB-INF/antisamy/antisamy-manchester.xml |
descriptionPolicy | Location of the AntiSamy description policy file. File string includes a path starting at the application context; e.g. /WEB-INF/antisamy/antisamy-manchester-descr.xml |
Create your Own
Create a class implementing org.jasig.portlet.newsreader.adapter.INewsAdapter.