diff --git a/pom.xml b/pom.xml index 9adc1a4..60eac42 100644 --- a/pom.xml +++ b/pom.xml @@ -4,8 +4,10 @@ org.rometools rome-fetcher rome-fetcher - 1.5-SNAPSHOT + 1.2 2004 + A well behaved feed fetcher API for ROME + http://www.rometools.org ROME Project http://rometools.jira.com @@ -25,6 +27,11 @@ + + kebernet + Robert Cooper + kebernet@gmail.comM + Nick Lothian http://nicklothian.com @@ -55,7 +62,6 @@ org.apache.maven.plugins maven-release-plugin - 2.0-beta-9 forked-path @@ -80,28 +86,6 @@ - - org.apache.maven.plugins - maven-source-plugin - - - - jar - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - - - - jar - - - - org.apache.maven.plugins maven-resources-plugin @@ -110,14 +94,8 @@ ${project.build.sourceEncoding} + - @@ -131,9 +109,9 @@ 2.4.0 - net.java.dev.rome + rome rome - 1.0.0 + 1.0 @@ -181,32 +159,43 @@ - sonatype-nexus-staging + central.staging Nexus Release Repository http://oss.sonatype.org/service/local/staging/deploy/maven2 - sonatype-nexus-snapshots - Sonatype Nexus Snapshots - http://oss.sonatype.org/content/repositories/snapshots + sonatype.snapshots + My Nexus Snapshots Repository + https://oss.sonatype.org/content/repositories/snapshots/ - release-sign-artifacts + release performRelease true + + + central.staging + Nexus Release Repository + http://oss.sonatype.org/service/local/staging/deploy/maven2 + + + sonatype.snapshots + My Nexus Snapshots Repository + https://oss.sonatype.org/content/repositories/snapshots/ + + org.apache.maven.plugins maven-gpg-plugin - 1.0-alpha-4 sign-artifacts @@ -217,6 +206,30 @@ + + org.apache.maven.plugins + maven-source-plugin + + + attach-sources + + jar + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + + + attach-javadocs + + jar + + + + diff --git a/src/java/org/rometools/fetcher/impl/FeedFetcherCache.java b/src/java/org/rometools/fetcher/impl/FeedFetcherCache.java index 7eaed64..ab076e6 100644 --- a/src/java/org/rometools/fetcher/impl/FeedFetcherCache.java +++ b/src/java/org/rometools/fetcher/impl/FeedFetcherCache.java @@ -20,7 +20,7 @@ import java.net.URL; /** *

An interface to allow caching of feed details. Implementing this allows the - * {@link com.sun.syndication.fetcher.io.HttpURLFeedFetcher} class to + * {@link org.rometools.fetcher.io.HttpURLFeedFetcher} class to * enable conditional gets

* * @author Nick Lothian diff --git a/src/java/org/rometools/fetcher/impl/HashMapFeedInfoCache.java b/src/java/org/rometools/fetcher/impl/HashMapFeedInfoCache.java index 1d8f93f..5f60825 100644 --- a/src/java/org/rometools/fetcher/impl/HashMapFeedInfoCache.java +++ b/src/java/org/rometools/fetcher/impl/HashMapFeedInfoCache.java @@ -24,7 +24,7 @@ import java.util.Map; /** - *

A very simple implementation of the {@link com.sun.syndication.fetcher.impl.FeedFetcherCache} interface.

+ *

A very simple implementation of the {@link org.rometools.fetcher.impl.FeedFetcherCache} interface.

* *

This implementation uses a HashMap to cache retrieved feeds. This implementation is * most suitible for sort term (client aggregator?) use, as the memory usage will increase diff --git a/src/java/org/rometools/fetcher/impl/HttpClientFeedFetcher.java b/src/java/org/rometools/fetcher/impl/HttpClientFeedFetcher.java index e47003c..4d3b8bd 100644 --- a/src/java/org/rometools/fetcher/impl/HttpClientFeedFetcher.java +++ b/src/java/org/rometools/fetcher/impl/HttpClientFeedFetcher.java @@ -17,8 +17,6 @@ package org.rometools.fetcher.impl; import com.sun.syndication.feed.synd.SyndFeed; -import org.rometools.fetcher.FetcherEvent; -import org.rometools.fetcher.FetcherException; import com.sun.syndication.io.FeedException; import com.sun.syndication.io.SyndFeedInput; import com.sun.syndication.io.XmlReader; @@ -31,6 +29,9 @@ import org.apache.commons.httpclient.HttpMethod; import org.apache.commons.httpclient.methods.GetMethod; import org.apache.commons.httpclient.params.HttpClientParams; +import org.rometools.fetcher.FetcherEvent; +import org.rometools.fetcher.FetcherException; + import java.io.IOException; import java.io.InputStream; @@ -145,7 +146,7 @@ public class HttpClientFeedFetcher extends AbstractFeedFetcher { } /** - * @param timeout Sets the read timeout for the URLConnection to a specified timeout, in milliseconds. + * @return timeout the read timeout for the URLConnection to a specified timeout, in milliseconds. */ public int getReadTimeout() { return (int) this.getHttpClientParams() @@ -157,7 +158,7 @@ public class HttpClientFeedFetcher extends AbstractFeedFetcher { } /** - * @see com.sun.syndication.fetcher.FeedFetcher#retrieveFeed(java.net.URL) + * @see org.rometools.fetcher.FeedFetcher#retrieveFeed(java.net.URL) */ public SyndFeed retrieveFeed(String userAgent, URL feedUrl) throws IllegalArgumentException, IOException, FeedException, FetcherException { diff --git a/src/java/org/rometools/fetcher/impl/HttpURLFeedFetcher.java b/src/java/org/rometools/fetcher/impl/HttpURLFeedFetcher.java index 67981b1..6a9026d 100644 --- a/src/java/org/rometools/fetcher/impl/HttpURLFeedFetcher.java +++ b/src/java/org/rometools/fetcher/impl/HttpURLFeedFetcher.java @@ -34,7 +34,7 @@ import com.sun.syndication.io.XmlReader; /** *

Class to retrieve syndication files via HTTP.

* - *

If passed a {@link com.sun.syndication.fetcher.impl.FeedFetcherCache} in the + *

If passed a {@link org.rometools.fetcher.impl.FeedFetcherCache} in the * constructor it will use conditional gets to only retrieve modified content.

* *

The class uses the Accept-Encoding: gzip header to retrieve gzipped feeds where diff --git a/src/java/org/rometools/fetcher/impl/LinkedHashMapFeedInfoCache.java b/src/java/org/rometools/fetcher/impl/LinkedHashMapFeedInfoCache.java index c1eab76..82abf6b 100644 --- a/src/java/org/rometools/fetcher/impl/LinkedHashMapFeedInfoCache.java +++ b/src/java/org/rometools/fetcher/impl/LinkedHashMapFeedInfoCache.java @@ -5,7 +5,7 @@ import java.util.LinkedHashMap; import java.util.Map; /** - *

An implementation of the {@link com.sun.syndication.fetcher.impl.FeedFetcherCache} interface.

+ *

An implementation of the {@link org.rometools.fetcher.impl.FeedFetcherCache} interface.

* *

Unlike the HashMapFeedInfoCache this implementation will not grow unbound

*