java.lang.Object
com.semanticcms.news.servlet.RssUtils
Utilities for working with RSS feeds.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String[]
static String
getRssServletPath
(Page page) Gets the servletPath to the RSS feed for the give page.static String
getRssServletPath
(PageRef pageRef) Gets the servletPath to the RSS feed for the give page ref.static boolean
isProtectedExtension
(String path) Checks that the given resource should not be included under any circumstances.static boolean
isRssEnabled
(ServletContext servletContext) Checks if the RSS module is installed.
-
Field Details
-
EXTENSION
- See Also:
-
CONTENT_TYPE
- See Also:
-
-
Method Details
-
isRssEnabled
Checks if the RSS module is installed. This is done by checking for the existence of the servlet class. This is cached in application scope to avoid throwing and catching ClassNotFoundException repeatedly. -
getResourceExtensions
-
isProtectedExtension
Checks that the given resource should not be included under any circumstances. -
getRssServletPath
Gets the servletPath to the RSS feed for the give page ref. -
getRssServletPath
Gets the servletPath to the RSS feed for the give page.- See Also:
-