cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [4/4] git commit: Allow use of lowercase as well
Date Thu, 12 Jun 2014 17:18:39 GMT
Allow use of lowercase as well


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

Branch: refs/heads/master
Commit: f912f16cf94631d09ab7be7241687b8e8696625f
Parents: 7fbe3b6
Author: Daniel Kulp <dkulp@apache.org>
Authored: Thu Jun 12 13:12:44 2014 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Thu Jun 12 13:18:22 2014 -0400

----------------------------------------------------------------------
 .../cxf/transport/http/asyncclient/AsyncHTTPConduitFactory.java    | 2 +-
 .../cxf/transport/http/netty/client/NettyHttpConduitFactory.java   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/f912f16c/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/AsyncHTTPConduitFactory.java
----------------------------------------------------------------------
diff --git a/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/AsyncHTTPConduitFactory.java
b/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/AsyncHTTPConduitFactory.java
index cb2e389..d836c9f 100644
--- a/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/AsyncHTTPConduitFactory.java
+++ b/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/AsyncHTTPConduitFactory.java
@@ -153,7 +153,7 @@ public class AsyncHTTPConduitFactory implements HTTPConduitFactory {
         if (st instanceof UseAsyncPolicy) {
             policy = (UseAsyncPolicy)st;
         } else if (st instanceof String) {
-            policy = UseAsyncPolicy.valueOf((String)st);
+            policy = UseAsyncPolicy.valueOf(((String)st).toUpperCase());
         } else {
             //policy = UseAsyncPolicy.ALWAYS;
             policy = UseAsyncPolicy.ASYNC_ONLY;

http://git-wip-us.apache.org/repos/asf/cxf/blob/f912f16c/rt/transports/http-netty/netty-client/src/main/java/org/apache/cxf/transport/http/netty/client/NettyHttpConduitFactory.java
----------------------------------------------------------------------
diff --git a/rt/transports/http-netty/netty-client/src/main/java/org/apache/cxf/transport/http/netty/client/NettyHttpConduitFactory.java
b/rt/transports/http-netty/netty-client/src/main/java/org/apache/cxf/transport/http/netty/client/NettyHttpConduitFactory.java
index 6a55ae0..4ab27b8 100644
--- a/rt/transports/http-netty/netty-client/src/main/java/org/apache/cxf/transport/http/netty/client/NettyHttpConduitFactory.java
+++ b/rt/transports/http-netty/netty-client/src/main/java/org/apache/cxf/transport/http/netty/client/NettyHttpConduitFactory.java
@@ -50,7 +50,7 @@ public class NettyHttpConduitFactory implements HTTPConduitFactory {
         if (st instanceof UseAsyncPolicy) {
             policy = (UseAsyncPolicy)st;
         } else if (st instanceof String) {
-            policy = UseAsyncPolicy.valueOf((String)st);
+            policy = UseAsyncPolicy.valueOf(((String)st).toUpperCase());
         } else {
             //policy = UseAsyncPolicy.ALWAYS;
             policy = UseAsyncPolicy.ASYNC_ONLY;


Mime
View raw message