org.apache.abdera.model.Feed.getTitle()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(3.3k)|赞(0)|评价(0)|浏览(160)

本文整理了Java中org.apache.abdera.model.Feed.getTitle()方法的一些代码示例,展示了Feed.getTitle()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Feed.getTitle()方法的具体详情如下:
包路径:org.apache.abdera.model.Feed
类名称:Feed
方法名:getTitle

Feed.getTitle介绍

暂无

代码示例

代码示例来源:origin: stackoverflow.com

public static void printAllPosts(
  GoogleService myService, String blogId)
  throws ServiceException, IOException {
 // Request the feed
 URL feedUrl = new URL("http://www.blogger.com/feeds/" + blogID + "/posts/default");
 Feed resultFeed = myService.getFeed(feedUrl, Feed.class);

 // Print the results
 System.out.println(resultFeed.getTitle().getPlainText());
 for (int i = 0; i < resultFeed.getEntries().size(); i++) {
  Entry entry = resultFeed.getEntries().get(i);
  System.out.println("\t" + entry.getTitle().getPlainText());
 }
 System.out.println();
}

代码示例来源:origin: org.apache.tuscany.sca/tuscany-binding-atom-runtime

Feed feed = getFeed( request );
if ( feed != null ) {
  String title = feed.getTitle();
  if ( title != null ) {
    collection.setTitle(title);

代码示例来源:origin: apache/cxf

@Test
public void testGetBooksWithCustomProvider() throws Exception {
  String endpointAddress =
    "http://localhost:" + PORT + "/bookstore/bookstore4/books/feed";
  Feed feed = getFeed(endpointAddress, null);
  assertEquals("http://localhost:" + PORT + "/bookstore/bookstore4/books/feed",
         feed.getBaseUri().toString());
  assertEquals("Collection of Books", feed.getTitle());
}

代码示例来源:origin: apache/cxf

@Test
public void testGetBooks2() throws Exception {
  String endpointAddress =
    "http://localhost:" + PORT + "/bookstore/sub/";
  Feed feed = getFeed(endpointAddress, null);
  assertEquals("http://localhost:" + PORT + "/bookstore/sub/",
         feed.getBaseUri().toString());
  assertEquals("Collection of Books", feed.getTitle());
  getAndCompareJson("http://localhost:" + PORT + "/bookstore/sub/books/entries/123.json",
          "resources/expected_atom_book_json2.txt",
          "*/*");
}

代码示例来源:origin: fcrepo3/fcrepo

private void addAtomManagedDatastream(Feed feed, String contentLocation) throws Exception {
  String dsId = "DS";
  Entry dsEntry = feed.addEntry();
  dsEntry.setId(feed.getId().toString() + "/" + dsId);
  Entry dsvEntry = feed.addEntry();
  dsvEntry.setId(dsEntry.getId().toString() + "/" + feed.getUpdatedString());
  dsEntry.setTitle(feed.getTitle());
  dsEntry.setUpdated(feed.getUpdated());
  dsEntry.addLink(dsvEntry.getId().toString(), Link.REL_ALTERNATE);
  dsEntry.addCategory(MODEL.STATE.uri, "A", null);
  dsEntry.addCategory(MODEL.CONTROL_GROUP.uri, "M", null);
  dsEntry.addCategory(MODEL.VERSIONABLE.uri, "true", null);
  dsvEntry.setTitle(feed.getTitle());
  dsvEntry.setUpdated(feed.getUpdated());
  ThreadHelper.addInReplyTo(dsvEntry, dsEntry.getId());
  dsvEntry.setSummary("summary");
  dsvEntry.setContent(new IRI(contentLocation), "text/plain");
}

代码示例来源:origin: fcrepo3/fcrepo

String label = feed.getTitle();
String state =
    m_xpath.valueOf("/a:feed/a:category[@scheme='"

代码示例来源:origin: org.fcrepo/fcrepo-server

String label = feed.getTitle();
String state =
    m_xpath.valueOf("/a:feed/a:category[@scheme='"

代码示例来源:origin: apache/cxf

assertEquals("http://localhost:" + PORT + "/bookstore/bookstore/books/feed",
       feed.getBaseUri().toString());
assertEquals("Collection of Books", feed.getTitle());

相关文章