org.carrot2.source.opensearch
Class RomeFetcherUtils

java.lang.Object
  extended by org.carrot2.source.opensearch.RomeFetcherUtils

public class RomeFetcherUtils
extends Object

Utility methods for working with Rome fetcher.


Constructor Summary
RomeFetcherUtils()
           
 
Method Summary
static SearchEngineResponse fetchUrl(String url, com.sun.syndication.fetcher.FeedFetcher feedFetcher)
          Fetches an OpenSearch feed from the provided URL and returns the entries as Carrot2 SearchEngineResponse.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RomeFetcherUtils

public RomeFetcherUtils()
Method Detail

fetchUrl

public static SearchEngineResponse fetchUrl(String url,
                                            com.sun.syndication.fetcher.FeedFetcher feedFetcher)
                                     throws IOException,
                                            com.sun.syndication.io.FeedException,
                                            com.sun.syndication.fetcher.FetcherException,
                                            MalformedURLException
Fetches an OpenSearch feed from the provided URL and returns the entries as Carrot2 SearchEngineResponse.

Parameters:
url - the OpenSearch feed to fetch
feedFetcher - Rome fetcher to use
Returns:
SearchEngineResponse containing entries from the feed
Throws:
IOException
com.sun.syndication.io.FeedException
com.sun.syndication.fetcher.FetcherException
MalformedURLException


Copyright (c) Dawid Weiss, Stanislaw Osinski