Publishing Web sites with RSS feeds
Use RSS feeds to generate specific process information
for subscribers in multiple standard formats such as "atom" and "rss2.0"
from a Lucene search index.
There are two different types of RSS feeds that you can add in a published Web site:
- PHP Zend based RSS feed
- Java Servlet-based RSS feed
Creating the RSS feed
To create PHP Zend
based RSS feeds:
- Select Static Web site, and select the check box for Include search capability.
- Select Include PHP/Lucene based search capability.
- Select the check box for PHP/Zend based RSS feed.
To create Java Servlet-based RSS feeds:
- Select Java EE Web application, and select the check box for Include search capability
- Select the check box for Servlet based RSS feed.
- Select a Web application name and a package format from the list.
Deploying the published site
If you publish your Web site with PHP Zend based RSS feed, you must copy the Web site into the PHP public folder. For information about PHP settings, see Configuring the Web site search.
If you publish your Web site with Java Servlet-based RSS feed, you must deploy your Web site .war or .ear file into a Java application server such as Apache Tomcat or IBM WebSphere Application Server.
Subscribing to the RSS feed
You can subscribe
a Java Servlet-based RSS feed by using the following URL format:
http://{ServerName}:{Port}/{WebApplicationName}/RSSServlet?{Parameters}
- ServerName: IP or host name of your application server
- Port: an open port of your application server, default value is 80
- WebApplicationName: context root of your published site
- Parameters:
- searchString: search keyword, the result lists all pages including the specified strings
- findElementsOfType: only return the specified element page, for example, set “findElementsOfType=role” means only role elements are in search result
- maxResultsPerType: limit the result number for each element type, for example, set “maxResultsPerType =5” means that the top five items per type in the search result are displayed
- feedType: specify RSS format, it could be set as “rss_2.0”, “rss_0.9”, “rss_0.91N”, “rss_0.91U”, “rss_0.92”, “rss_0.93”, “rss_0.94”, “atom_1.0” and “atom_0.3”
- tags: specify the tags that can be displayed in the result pages, setting the “tags=t1,t2” lists all the elements with t1 or t2 tags
- order: specify the order field for the feed result, setting the “order=title” sort the result by title string
- title: specify title for the RSS feed result, default value is empty
- desc: specify description for the RSS feed result, default value is empty
- link: specify link URL for the RSS feed result, default value is “http://w3.ibm.com”
- copyright: specify copyright information for the RSS feed result, default value is empty
- language: specify language for the RSS feed result, default value is “en_us”
You can subscribe a PHP Zend based RSS feed by using the
following URL format:
PHP
Zend based RSS feeds support all parameters as the Java Servlet-based
RSS feeds, except for the following:http://{ServerName}:{Port}/{WebApplicationName}/search/RssFeed.php?{Parameters}
- They do not support the "order" parameter
- They only supports "rss_2.0" and "atom" for the "feedType" parameter
You can combine the parameters to define a customized
feed URL, such as:
http://localhost:80/process1/search/RssFeed.php?searchString=development&findElementsOfType=task&maxResultsPerType=2&feedType=rss_2.0&tags=OOAD,development&title=RSS&desc=MEC&link=http://localhost©right=copyright&language=en_us
