camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject camel git commit: CAMEL-10998: deprecate jetty producer
Date Mon, 13 Mar 2017 08:45:12 GMT
Repository: camel
Updated Branches:
  refs/heads/master 0ada2537e -> 2efb85f1d


CAMEL-10998: deprecate jetty producer


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

Branch: refs/heads/master
Commit: 2efb85f1d940088260f633cbf3da614e085b3f30
Parents: 0ada253
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Mon Mar 13 09:45:05 2017 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Mon Mar 13 09:45:05 2017 +0100

----------------------------------------------------------------------
 .../java/org/apache/camel/component/jetty/CamelHttpClient.java   | 1 +
 .../java/org/apache/camel/component/jetty/JettyHttpProducer.java | 1 +
 components/camel-jetty9/src/main/docs/jetty-component.adoc       | 4 ++++
 .../java/org/apache/camel/component/jetty9/CamelHttpClient9.java | 1 +
 4 files changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/2efb85f1/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/CamelHttpClient.java
----------------------------------------------------------------------
diff --git a/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/CamelHttpClient.java
b/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/CamelHttpClient.java
index 90c89ae..bf41fed 100644
--- a/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/CamelHttpClient.java
+++ b/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/CamelHttpClient.java
@@ -24,6 +24,7 @@ import org.eclipse.jetty.client.HttpClientTransport;
 import org.eclipse.jetty.util.ssl.SslContextFactory;
 import org.eclipse.jetty.util.thread.QueuedThreadPool;
 
+@Deprecated
 public abstract class CamelHttpClient extends HttpClient {
     
     private boolean supportRedirect;

http://git-wip-us.apache.org/repos/asf/camel/blob/2efb85f1/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpProducer.java
----------------------------------------------------------------------
diff --git a/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpProducer.java
b/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpProducer.java
index 9de51f6..bd92792 100644
--- a/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpProducer.java
+++ b/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpProducer.java
@@ -49,6 +49,7 @@ import org.slf4j.LoggerFactory;
 /**
  * @version 
  */
+@Deprecated
 public class JettyHttpProducer extends DefaultAsyncProducer implements AsyncProcessor {
     private static final Logger LOG = LoggerFactory.getLogger(JettyHttpProducer.class);
     private HttpClient client;

http://git-wip-us.apache.org/repos/asf/camel/blob/2efb85f1/components/camel-jetty9/src/main/docs/jetty-component.adoc
----------------------------------------------------------------------
diff --git a/components/camel-jetty9/src/main/docs/jetty-component.adoc b/components/camel-jetty9/src/main/docs/jetty-component.adoc
index 4edc673..fc0c0c0 100644
--- a/components/camel-jetty9/src/main/docs/jetty-component.adoc
+++ b/components/camel-jetty9/src/main/docs/jetty-component.adoc
@@ -2,6 +2,8 @@
 
 *Available as of Camel version 1.2*
 
+WARNING: The producer is deprecated - do not use. We only recommend using jetty as consumer
(eg from jetty)
+
 The *jetty* component provides HTTP-based link:endpoint.html[endpoints]
 for consuming and producing HTTP requests. That is, the Jetty component
 behaves as a simple Web server. +
@@ -206,6 +208,8 @@ link:http.html[HTTP Component]
 
 ### Producer Example
 
+WARNING: The producer is deprecated - do not use. We only recommend using jetty as consumer
(eg from jetty)
+
 The following is a basic example of how to send an HTTP request to an
 existing HTTP endpoint.
 

http://git-wip-us.apache.org/repos/asf/camel/blob/2efb85f1/components/camel-jetty9/src/main/java/org/apache/camel/component/jetty9/CamelHttpClient9.java
----------------------------------------------------------------------
diff --git a/components/camel-jetty9/src/main/java/org/apache/camel/component/jetty9/CamelHttpClient9.java
b/components/camel-jetty9/src/main/java/org/apache/camel/component/jetty9/CamelHttpClient9.java
index bb29eaf..f4c6c77 100644
--- a/components/camel-jetty9/src/main/java/org/apache/camel/component/jetty9/CamelHttpClient9.java
+++ b/components/camel-jetty9/src/main/java/org/apache/camel/component/jetty9/CamelHttpClient9.java
@@ -22,6 +22,7 @@ import org.apache.camel.component.jetty.CamelHttpClient;
 import org.eclipse.jetty.client.HttpClientTransport;
 import org.eclipse.jetty.util.ssl.SslContextFactory;
 
+@Deprecated
 public class CamelHttpClient9 extends CamelHttpClient {
     
     public CamelHttpClient9(SslContextFactory sslContextFactory) {


Mime
View raw message