2014-04-18 19:37:21 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<!--
|
2016-04-24 20:54:49 +02:00
|
|
|
| Generated by Apache Maven Doxia at 2016-04-24
|
2014-04-18 19:37:21 +02:00
|
|
|
| Rendered using Apache Maven Fluido Skin 1.3.0
|
|
|
|
-->
|
2013-09-27 00:12:22 +02:00
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
|
|
<head>
|
2014-04-18 19:37:21 +02:00
|
|
|
<meta charset="UTF-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
<meta name="author" content="mkurz" />
|
2013-09-27 00:12:22 +02:00
|
|
|
<meta name="Date-Creation-yyyymmdd" content="20110814" />
|
2016-04-24 20:54:49 +02:00
|
|
|
<meta name="Date-Revision-yyyymmdd" content="20160424" />
|
2013-09-27 00:12:22 +02:00
|
|
|
<meta http-equiv="Content-Language" content="en" />
|
2014-04-18 19:37:21 +02:00
|
|
|
<title>ROME - Preserving WireFeeds</title>
|
|
|
|
<link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
|
|
|
|
<link rel="stylesheet" href="./css/site.css" />
|
|
|
|
<link rel="stylesheet" href="./css/print.css" media="print" />
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" src="./js/apache-maven-fluido-1.3.0.min.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
<body class="topBarDisabled">
|
|
|
|
|
2016-04-24 20:54:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-09-27 00:12:22 +02:00
|
|
|
|
2016-04-24 20:54:49 +02:00
|
|
|
<a href="http://github.com/rometools/rome">
|
|
|
|
<img style="position: absolute; top: 0; right: 0; border: 0; z-index: 10000;"
|
|
|
|
src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"
|
|
|
|
alt="Fork me on GitHub">
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-04-18 19:37:21 +02:00
|
|
|
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div id="banner">
|
|
|
|
<div class="pull-left">
|
2016-04-24 20:54:49 +02:00
|
|
|
<a href="index.html" id="bannerLeft">
|
2014-04-18 19:37:21 +02:00
|
|
|
<img src="images/romelogo.png" alt="ROME"/>
|
2013-09-27 00:12:22 +02:00
|
|
|
</a>
|
2014-04-18 19:37:21 +02:00
|
|
|
</div>
|
|
|
|
<div class="pull-right"> </div>
|
|
|
|
<div class="clear"><hr/></div>
|
2013-09-27 00:12:22 +02:00
|
|
|
</div>
|
2014-04-18 19:37:21 +02:00
|
|
|
|
|
|
|
<div id="breadcrumbs">
|
|
|
|
<ul class="breadcrumb">
|
|
|
|
|
2013-09-27 00:12:22 +02:00
|
|
|
|
2014-04-18 19:37:21 +02:00
|
|
|
|
|
|
|
|
2013-09-27 00:12:22 +02:00
|
|
|
|
2016-04-24 20:54:49 +02:00
|
|
|
<li id="publishDate" class="pull-right">Last Published: 2016-04-24</li> <li class="divider pull-right">|</li>
|
|
|
|
<li id="projectVersion" class="pull-right">Version: 1.7.0-SNAPSHOT</li>
|
2014-04-18 19:37:21 +02:00
|
|
|
|
|
|
|
</ul>
|
2013-09-27 00:12:22 +02:00
|
|
|
</div>
|
2014-04-18 19:37:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
<div class="row-fluid">
|
|
|
|
<div id="leftColumn" class="span3">
|
|
|
|
<div class="well sidebar-nav">
|
|
|
|
|
2013-09-27 00:12:22 +02:00
|
|
|
|
2014-04-18 19:37:21 +02:00
|
|
|
<ul class="nav nav-list">
|
|
|
|
<li class="nav-header">Rome</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
<a href="index.html" title="Overview">
|
|
|
|
<i class="none"></i>
|
|
|
|
Overview</a>
|
2013-09-27 00:12:22 +02:00
|
|
|
</li>
|
2014-04-18 19:37:21 +02:00
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
<a href="HowRomeWorks/index.html" title="How Rome Works">
|
|
|
|
<i class="icon-chevron-right"></i>
|
|
|
|
How Rome Works</a>
|
2013-09-27 00:12:22 +02:00
|
|
|
</li>
|
2014-04-18 19:37:21 +02:00
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
<a href="RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/index.html" title="Tutorials And Articles">
|
|
|
|
<i class="none"></i>
|
|
|
|
Tutorials And Articles</a>
|
2013-09-27 00:12:22 +02:00
|
|
|
</li>
|
2014-04-18 19:37:21 +02:00
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
<a href="ROMEReleases/index.html" title="Releases">
|
|
|
|
<i class="icon-chevron-right"></i>
|
|
|
|
Releases</a>
|
2013-09-27 00:12:22 +02:00
|
|
|
</li>
|
2014-04-18 19:37:21 +02:00
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
<a href="ROMEDevelopmentProposals/index.html" title="ROME Development Proposals">
|
|
|
|
<i class="none"></i>
|
|
|
|
ROME Development Proposals</a>
|
2013-09-27 00:12:22 +02:00
|
|
|
</li>
|
2016-04-24 20:54:49 +02:00
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
<a href="Modules/index.html" title="Modules">
|
|
|
|
<i class="icon-chevron-right"></i>
|
|
|
|
Modules</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
<a href="Fetcher/index.html" title="Fetcher">
|
|
|
|
<i class="icon-chevron-right"></i>
|
|
|
|
Fetcher</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
<a href="Opml/index.html" title="OPML">
|
|
|
|
<i class="none"></i>
|
|
|
|
OPML</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
<a href="Propono/index.html" title="Propono">
|
|
|
|
<i class="none"></i>
|
|
|
|
Propono</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
<a href="Certiorem/index.html" title="Certiorem">
|
|
|
|
<i class="icon-chevron-right"></i>
|
|
|
|
Certiorem</a>
|
|
|
|
</li>
|
2014-04-18 19:37:21 +02:00
|
|
|
<li class="nav-header">Project Documentation</li>
|
2016-04-24 20:54:49 +02:00
|
|
|
|
2014-04-18 19:37:21 +02:00
|
|
|
<li>
|
|
|
|
|
|
|
|
<a href="project-info.html" title="Project Information">
|
|
|
|
<i class="icon-chevron-right"></i>
|
|
|
|
Project Information</a>
|
2013-09-27 00:12:22 +02:00
|
|
|
</li>
|
2014-04-18 19:37:21 +02:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<hr class="divider" />
|
|
|
|
|
|
|
|
<div id="poweredBy">
|
|
|
|
<div class="clear"></div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
<div class="clear"></div>
|
2013-09-27 00:12:22 +02:00
|
|
|
<a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
|
2014-04-18 19:37:21 +02:00
|
|
|
<img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" />
|
2013-09-27 00:12:22 +02:00
|
|
|
</a>
|
2014-04-18 19:37:21 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="bodyColumn" class="span9" >
|
|
|
|
|
|
|
|
<div class="section">
|
2013-09-27 00:12:22 +02:00
|
|
|
<h2>Preserving WireFeeds<a name="Preserving_WireFeeds"></a></h2>
|
|
|
|
<p>WireFeeds will be preserved if the property preserveWireFeed is set on the SyndFeedInput object it is built from:</p>
|
|
|
|
<div class="source">
|
|
|
|
<pre>
|
|
|
|
SyndFeedInput in = new SyndFeedInput();
|
|
|
|
in.setPreserveWireFeed(true);
|
|
|
|
SyndFeed syndFeed = in.build(..);
|
|
|
|
WireFeed wireFeed = syndFeed.originalWireFeed();
|
|
|
|
</pre></div>
|
|
|
|
<p>Atom/RSS Entry/Item objects are also available from SyndEntry objects if the WireFeed is preserved:</p>
|
|
|
|
<div class="source">
|
|
|
|
<pre>
|
|
|
|
Object obj = syndEntry.getWireEntry();
|
|
|
|
if (obj != null && obj instanceof Entry) {
|
|
|
|
// it is an Atom Entry object
|
|
|
|
// do Atom specific stuff, eg:
|
|
|
|
Entry entry = (Entry) o;
|
|
|
|
System.out.println(entry.getRights());
|
|
|
|
} else if (obj != null && obj instanceof Item) {
|
|
|
|
// it is a RSS Item object
|
|
|
|
// do RSS specific stuff eg:
|
|
|
|
Item item = (Item) o;
|
|
|
|
System.out.println(item.getComments());
|
|
|
|
}
|
|
|
|
</pre></div>
|
|
|
|
<p>The Fetcher can be set to preserve WireFeeds by setting the preserveWireFeed property to true:</p>
|
|
|
|
<div class="source">
|
|
|
|
<pre>
|
|
|
|
feedFetcher.setPreserveWireFeed(true);
|
|
|
|
</pre></div>
|
|
|
|
<p>-- Main.nicklothian - 11 Mar 2009</p></div>
|
|
|
|
</div>
|
2014-04-18 19:37:21 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<hr/>
|
|
|
|
|
|
|
|
<footer>
|
|
|
|
<div class="container-fluid">
|
2016-04-24 20:54:49 +02:00
|
|
|
<div class="row span12">Copyright © 2016.
|
2014-04-18 19:37:21 +02:00
|
|
|
All Rights Reserved.
|
|
|
|
|
2013-09-27 00:12:22 +02:00
|
|
|
</div>
|
2014-04-18 19:37:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</footer>
|
2013-09-27 00:12:22 +02:00
|
|
|
</body>
|
2016-04-24 20:54:49 +02:00
|
|
|
</html>
|