java.lang.Object
com.semanticcms.news.servlet.RssUtils
Utilities for working with RSS feeds.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]static StringgetRssServletPath(Page page) Gets the servletPath to the RSS feed for the give page.static StringgetRssServletPath(PageRef pageRef) Gets the servletPath to the RSS feed for the give page ref.static booleanisProtectedExtension(String path) Checks that the given resource should not be included under any circumstances.static booleanisRssEnabled(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:
-
