camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [4/5] git commit: RssEndpoint throw meaningful exception when creating the producer
Date Sun, 21 Sep 2014 12:02:05 GMT
RssEndpoint throw meaningful exception when creating the producer


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/e0ac64d4
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/e0ac64d4
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/e0ac64d4

Branch: refs/heads/master
Commit: e0ac64d4e95483e5c45e35084b4f78da8955089c
Parents: 7e11fb7
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Sun Sep 21 19:40:02 2014 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Sun Sep 21 20:01:37 2014 +0800

----------------------------------------------------------------------
 .../main/java/org/apache/camel/component/rss/RssEndpoint.java  | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/e0ac64d4/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssEndpoint.java
b/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssEndpoint.java
index 2fa44ff..3678dab 100644
--- a/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssEndpoint.java
+++ b/components/camel-rss/src/main/java/org/apache/camel/component/rss/RssEndpoint.java
@@ -22,6 +22,7 @@ import java.util.Date;
 import com.sun.syndication.feed.synd.SyndFeed;
 import org.apache.camel.Exchange;
 import org.apache.camel.Processor;
+import org.apache.camel.Producer;
 import org.apache.camel.component.feed.FeedComponent;
 import org.apache.camel.component.feed.FeedEndpoint;
 import org.apache.camel.component.feed.FeedPollingConsumer;
@@ -40,6 +41,11 @@ public class RssEndpoint extends FeedEndpoint {
     public RssEndpoint(String endpointUri, FeedComponent component, String feedUri) {
         super(endpointUri, component, feedUri);
     }
+    
+    @Override
+    public Producer createProducer() throws Exception {
+        throw new UnsupportedOperationException("RssProducer is not implemented");
+    }
 
     @Override
     public Exchange createExchange(Object feed) {


Mime
View raw message