org.tigris.scarab.feeds
Class QueryFeed

java.lang.Object
  extended byorg.tigris.scarab.feeds.QueryFeed
All Implemented Interfaces:
Feed

public class QueryFeed
extends java.lang.Object
implements Feed

Converts a query to an RSS feed. The private methods are mostly ripped off of ScarabRequestTool and there should be some refactoring done here.

Author:
Eric Pugh

Constructor Summary
QueryFeed(Query query, IteratorWithSize results, ScarabLink scarabLink, java.lang.String format)
          Constructs the query feed with the search results.
 
Method Summary
 com.sun.syndication.feed.synd.SyndFeed getFeed()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryFeed

public QueryFeed(Query query,
                 IteratorWithSize results,
                 ScarabLink scarabLink,
                 java.lang.String format)
Constructs the query feed with the search results.

Parameters:
query - The searched query
results - The iterator containing the search-results
scarabLink -
format -
Method Detail

getFeed

public com.sun.syndication.feed.synd.SyndFeed getFeed()
                                               throws java.lang.Exception,
                                                      org.apache.torque.TorqueException,
                                                      com.workingdogs.village.DataSetException,
                                                      org.apache.fulcrum.security.util.TurbineSecurityException
Specified by:
getFeed in interface Feed
Throws:
java.lang.Exception
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
org.apache.fulcrum.security.util.TurbineSecurityException


Copyright © 2000-2004 Tigris.org. All Rights Reserved.