本文整理了Java中org.apache.abdera.model.Feed.setBaseUri()
方法的一些代码示例,展示了Feed.setBaseUri()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Feed.setBaseUri()
方法的具体详情如下:
包路径:org.apache.abdera.model.Feed
类名称:Feed
方法名:setBaseUri
暂无
代码示例来源:origin: org.apache.cxf/cxf-rt-management-web
protected void setDefaultFeedProperties(Feed feed, List<LogRecord> records) {
if (feedBuilder != null) {
feed.setId(feedBuilder.getId(records));
feed.addAuthor(feedBuilder.getAuthor(records));
feed.setTitle(feedBuilder.getTitle(records));
feed.setUpdated(feedBuilder.getUpdated(records));
feed.setBaseUri(feedBuilder.getBaseUri(records));
List<String> categories = feedBuilder.getCategories(records);
if (categories != null) {
for (String category : categories) {
feed.addCategory(category);
}
}
Map<String, String> links = feedBuilder.getLinks(records);
if (links != null) {
for (java.util.Map.Entry<String, String> mapEntry : links.entrySet()) {
feed.addLink(mapEntry.getKey(), mapEntry.getValue());
}
}
} else {
feed.setId("uuid:" + UUID.randomUUID().toString());
feed.addAuthor("CXF");
feed.setTitle("CXF Service Log Entries");
feed.setUpdated(new Date());
}
}
代码示例来源:origin: apache/cxf
private Feed doGetBookAsFeed(@Context UriInfo uParam) {
Factory factory = Abdera.getNewFactory();
Feed f = factory.newFeed();
f.setBaseUri(uParam.getAbsolutePath().toString());
f.setTitle("Collection of Books");
f.setId("http://www.books.com");
f.addAuthor("BookStore Management Company");
try {
for (Book b : books.values()) {
Entry e = AtomUtils.createBookEntry(factory, b);
f.addEntry(e);
}
} catch (Exception ex) {
// ignore
}
return f;
}
内容来源于网络,如有侵权,请联系作者删除!