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 java.lang.Object implements Feed
AbstractFeed class.
- Since:
- 1.8.1
- Version:
- $Id: $
- Author:
- Benjamin Reed
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
m_feedType
protected int
m_maxEntries
protected javax.servlet.ServletRequest
m_servletRequest
protected java.lang.String
m_urlBase
-
Constructor Summary
Constructors Constructor Description AbstractFeed()
Constructor for AbstractFeed.AbstractFeed(java.lang.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()
getFeedjava.lang.String
getFeedType()
getFeedTypeint
getMaxEntries()
getMaxEntriesjavax.servlet.ServletRequest
getRequest()
getRequestjavax.servlet.ServletContext
getServletContext()
java.lang.String
getUrlBase()
getUrlBasejava.lang.String
render()
renderprotected java.lang.String
sanitizeTitle(java.lang.String title)
sanitizeTitlevoid
setFeedType(java.lang.String feedType)
setFeedTypevoid
setMaxEntries(int maxEntries)
setMaxEntriesvoid
setRequest(javax.servlet.ServletRequest request)
setRequestvoid
setServletContext(javax.servlet.ServletContext context)
void
setUrlBase(java.lang.String urlBase)
setUrlBase
-
-
-
Method Detail
-
getUrlBase
public final java.lang.String getUrlBase()
getUrlBase
- Specified by:
getUrlBase
in interfaceFeed
- Returns:
- a
String
object.
-
setUrlBase
public final void setUrlBase(java.lang.String urlBase)
setUrlBase
- Specified by:
setUrlBase
in interfaceFeed
- Parameters:
urlBase
- aString
object.
-
getFeedType
public final java.lang.String getFeedType()
getFeedType
- Specified by:
getFeedType
in interfaceFeed
- Returns:
- a
String
object.
-
setFeedType
public final void setFeedType(java.lang.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 java.lang.String render()
render
-
sanitizeTitle
protected java.lang.String sanitizeTitle(java.lang.String title)
sanitizeTitle
- Parameters:
title
- aString
object.- Returns:
- a
String
object.
-
-