java.net: Wiki

The Source for Java Technology Collaboration


 <<O>>  Difference Topic OpenSearch (2 - 05 Nov 2006 - Main.marcwick)
Line: 1 to 1
 
META TOPICPARENT name="RomeModules"

Amazon A9 OpenSearch

Changed:
<
<
This plug in is for use with OpenSearch.org results.
>
>
This plug in is for use with OpenSearch.org results.
 The latest version is 0.1 available.

 <<O>>  Difference Topic OpenSearch (1 - 26 Apr 2006 - Main.kebernet)
Line: 1 to 1
Added:
>
>
META TOPICPARENT name="RomeModules"

Amazon A9 OpenSearch

This plug in is for use with OpenSearch.org results.

The latest version is 0.1 available.

Sample Usage

                SyndFeed feed = new SyndFeedImpl();
                feed.setFeedType(feedType);

                // Add the opensearch module, you would get information like totalResults from the
                // return results of your search
                List mods = feed.getModules();
               OpenSearchModule osm = new OpenSearchModuleImpl();
               osm.setItemsPerPage(1);
               osm.setStartIndex(1);
               osm.setTotalResults(1024);
               osm.setItemsPerPage(50);
               
               OSQuery query = new OSQuery();
               query.setRole("superset");
               query.setSearchTerms("Java Syndication");
               query.setStartPage(1);
               osm.addQuery(query);
               
               Link link = new Link();
               link.setHref("http://www.bargainstriker.com/opensearch-description.xml");
               link.setType("application/opensearchdescription+xml");
               osm.setLink(link);
               
               mods.add(osm);
                
               feed.setModules(mods);
                // end add module
               

Changes:

0.1

Initial move to the ROME project.

-- Main.kebernet - 26 Apr 2006


Topic OpenSearch . { View | Diffs r2 < r1 | More }
 XML java.net RSS