本文整理汇总了Java中com.sun.syndication.fetcher.FetcherException类的典型用法代码示例。如果您正苦于以下问题:Java FetcherException类的具体用法?Java FetcherException怎么用?Java FetcherException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FetcherException类属于com.sun.syndication.fetcher包,在下文中一共展示了FetcherException类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: poll
import com.sun.syndication.fetcher.FetcherException; //导入依赖的package包/类
@Override
public void poll() {
try {
feedFetcher.retrieveFeed(URL_object);
} catch (IllegalArgumentException | IOException | FeedException | FetcherException e) {
// TODO Proper error handling
e.printStackTrace();
}
}
开发者ID:SAP,项目名称:hana-native-adapters,代码行数:10,代码来源:RSSAdapter.java
示例2: start
import com.sun.syndication.fetcher.FetcherException; //导入依赖的package包/类
@SuppressWarnings("unchecked")
public void start(String rssurl) throws AdapterException {
FeedFetcher feedFetcher = new HttpURLFeedFetcher();
try {
feed = feedFetcher.retrieveFeed(new URL(rssurl));
feediterator = (Iterator<SyndEntry>) feed.getEntries().iterator();
} catch (IllegalArgumentException | IOException | FeedException | FetcherException e) {
feediterator = null;
feed = null;
throw new AdapterException(e);
}
}
开发者ID:SAP,项目名称:hana-native-adapters,代码行数:13,代码来源:TableLoaderRSSFeed.java
示例3: getFeed
import com.sun.syndication.fetcher.FetcherException; //导入依赖的package包/类
private SyndFeed getFeed(SyndFeedInfo syndFeedInfo, String urlStr, HttpMethod method, int statusCode) throws IOException, HttpException, FetcherException, FeedException {
if (statusCode == HttpURLConnection.HTTP_NOT_MODIFIED && syndFeedInfo != null) {
fireEvent(FetcherEvent.EVENT_TYPE_FEED_UNCHANGED, urlStr);
return syndFeedInfo.getSyndFeed();
}
SyndFeed feed = retrieveFeed(urlStr, method);
fireEvent(FetcherEvent.EVENT_TYPE_FEED_RETRIEVED, urlStr, feed);
return feed;
}
开发者ID:igniterealtime,项目名称:Openfire,代码行数:12,代码来源:HttpClientWithTimeoutFeedFetcher.java
示例4: getFeed
import com.sun.syndication.fetcher.FetcherException; //导入依赖的package包/类
private SyndFeed getFeed(SyndFeedInfo syndFeedInfo, String urlStr, HttpMethod method, int statusCode) throws IOException, HttpException, FetcherException, FeedException {
if (statusCode == HttpURLConnection.HTTP_NOT_MODIFIED && syndFeedInfo != null) {
fireEvent(FetcherEvent.EVENT_TYPE_FEED_UNCHANGED, urlStr);
return syndFeedInfo.getSyndFeed();
}
SyndFeed feed = retrieveFeed(urlStr, method);
fireEvent(FetcherEvent.EVENT_TYPE_FEED_RETRIEVED, urlStr, feed);
return feed;
}
开发者ID:coodeer,项目名称:g3server,代码行数:12,代码来源:HttpClientWithTimeoutFeedFetcher.java
注:本文中的com.sun.syndication.fetcher.FetcherException类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论