cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [1/4] git commit: Allow setting the UseAsyn flag via a string to make it easier to set via spring/blueprint
Date Thu, 26 Jun 2014 15:57:05 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.7.x-fixes 67a6c11d4 -> f72da13cb


Allow setting the UseAsyn flag via a string to make it easier to set via spring/blueprint

Conflicts:
	rt/transports/http-netty/netty-client/src/main/java/org/apache/cxf/transport/http/netty/client/NettyHttpConduit.java


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

Branch: refs/heads/2.7.x-fixes
Commit: d4d674cb26679597760e6275a43c53a702ba0ab9
Parents: 67a6c11
Author: Daniel Kulp <dkulp@apache.org>
Authored: Fri Jun 20 12:31:33 2014 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Thu Jun 26 11:56:09 2014 -0400

----------------------------------------------------------------------
 .../apache/cxf/transport/http/asyncclient/AsyncHTTPConduit.java   | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/d4d674cb/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/AsyncHTTPConduit.java
----------------------------------------------------------------------
diff --git a/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/AsyncHTTPConduit.java
b/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/AsyncHTTPConduit.java
index 2712cfc..9855641 100644
--- a/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/AsyncHTTPConduit.java
+++ b/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/AsyncHTTPConduit.java
@@ -138,6 +138,9 @@ public class AsyncHTTPConduit extends URLConnectionHTTPConduit {
         if (o == null) {
             o = factory.getUseAsyncPolicy();
         }
+        if (o instanceof String) {
+            o = UseAsyncPolicy.valueOf(o.toString().toUpperCase());
+        }
         if (o instanceof UseAsyncPolicy) {
             switch ((UseAsyncPolicy)o) {
             case ALWAYS:


Mime
View raw message