}
});
}
UpdateSearchRequest getSearchRequest() {
UpdateSearchScope scope = new UpdateSearchScope();
/* Check for User Defined Sites from System Property */
String extensionSites = System.getProperty(EXTENSION_SITES_PROPERTY);
if (StringUtils.isSet(extensionSites)) {
String[] sites = extensionSites.split(EXTENSION_SITES_DIVIDER);
for (String site : sites) {
try {
URL url = new URL(site);
scope.addSearchSite(url.toString(), url, null);
} catch (MalformedURLException e) {
// skip bad URLs
}
}
}
/* Add RSSOwl.org if user did not define any other sites */
if (scope.getSearchSites().length == 0) {
try {
URL url = new URL(UPDATE_SITE);
scope.addSearchSite("RSSOwl.org", url, null); //$NON-NLS-1$
} catch (MalformedURLException e) {
// skip bad URLs
}
}