spType = spContext.checkSharePointType(spURL);
if (null == spType) {
LOGGER.log(Level.WARNING, "Unknown SharePoint version [ " + spType
+ " ] URL [ " + spURL + " ]. WebState creation failed. ");
spContext.logExcludedURL("[ " + spURL + " ] Unknown SharePoint version. ");
throw new SharepointException("Unknown SharePoint version.");
}
webId = webUrl = spURL;
spContext.setSiteURL(webUrl);
final WebsHelper webs = new WebsHelper(spContext);
title = webs.getWebTitle(webUrl, spType);
if (FeedType.CONTENT_FEED == spContext.getFeedType()
&& SPType.SP2003 == spType) {
LOGGER.warning("excluding "
+ spURL
+ " because it is a SP2003 site and the feedType being used is content. Content feed is not supported on SP2003. ");
spContext.logExcludedURL("[ "
+ spURL
+ " ] it is a SP2003 site and the feedType being used is content. Content feed is not supported on SP2003. ");
throw new SharepointException(
"Unsupported SharePoint version for content feed being used.");
}
}