public class RomeFetcherUtils extends Object
| Constructor and Description |
|---|
RomeFetcherUtils() |
| Modifier and Type | Method and Description |
|---|---|
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. |
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
SearchEngineResponse.url - the OpenSearch feed to fetchfeedFetcher - Rome fetcher to useSearchEngineResponse containing entries from the feedIOExceptioncom.sun.syndication.io.FeedExceptioncom.sun.syndication.fetcher.FetcherExceptionMalformedURLException