Package org.opennms.web.rss
Class AbstractFeed
- java.lang.Object
-
- org.opennms.web.rss.AbstractFeed
-
- All Implemented Interfaces:
Feed
- Direct Known Subclasses:
AlarmFeed
,EventFeed
,NotificationFeed
,OutageFeed
public abstract class AbstractFeed extends Object implements Feed
AbstractFeed class.
- Since:
- 1.8.1
- Version:
- $Id: $
- Author:
- Benjamin Reed
-
-
Field Summary
Fields Modifier and Type Field Description protected String
m_feedType
protected int
m_maxEntries
protected javax.servlet.ServletRequest
m_servletRequest
protected String
m_urlBase
-
Constructor Summary
Constructors Constructor Description AbstractFeed()
Constructor for AbstractFeed.AbstractFeed(String feedType)
Constructor for AbstractFeed.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract com.rometools.rome.feed.synd.SyndFeed
getFeed()
getFeedString
getFeedType()
getFeedTypeint
getMaxEntries()
getMaxEntriesjavax.servlet.ServletRequest
getRequest()
getRequestjavax.servlet.ServletContext
getServletContext()
String
getUrlBase()
getUrlBaseString
render()
renderprotected String
sanitizeTitle(String title)
sanitizeTitlevoid
setFeedType(String feedType)
setFeedTypevoid
setMaxEntries(int maxEntries)
setMaxEntriesvoid
setRequest(javax.servlet.ServletRequest request)
setRequestvoid
setServletContext(javax.servlet.ServletContext context)
void
setUrlBase(String urlBase)
setUrlBase
-
-
-
Method Detail
-
getUrlBase
public final String getUrlBase()
getUrlBase
- Specified by:
getUrlBase
in interfaceFeed
- Returns:
- a
String
object.
-
setUrlBase
public final void setUrlBase(String urlBase)
setUrlBase
- Specified by:
setUrlBase
in interfaceFeed
- Parameters:
urlBase
- aString
object.
-
getFeedType
public final String getFeedType()
getFeedType
- Specified by:
getFeedType
in interfaceFeed
- Returns:
- a
String
object.
-
setFeedType
public final void setFeedType(String feedType)
setFeedType
- Specified by:
setFeedType
in interfaceFeed
- Parameters:
feedType
- aString
object.
-
getMaxEntries
public final int getMaxEntries()
getMaxEntries
- Specified by:
getMaxEntries
in interfaceFeed
- Returns:
- a int.
-
setMaxEntries
public final void setMaxEntries(int maxEntries)
setMaxEntries
- Specified by:
setMaxEntries
in interfaceFeed
- Parameters:
maxEntries
- a int.
-
getRequest
public final javax.servlet.ServletRequest getRequest()
getRequest
- Specified by:
getRequest
in interfaceFeed
- Returns:
- a
ServletRequest
object.
-
setRequest
public final void setRequest(javax.servlet.ServletRequest request)
setRequest
- Specified by:
setRequest
in interfaceFeed
- Parameters:
request
- aServletRequest
object.
-
getServletContext
public final javax.servlet.ServletContext getServletContext()
- Specified by:
getServletContext
in interfaceFeed
-
setServletContext
public final void setServletContext(javax.servlet.ServletContext context)
- Specified by:
setServletContext
in interfaceFeed
-
getFeed
public abstract com.rometools.rome.feed.synd.SyndFeed getFeed()
getFeed
- Returns:
- a
SyndFeed
object.
-
render
public final String render()
render
-
-