cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Making sure JettyHttpDestination can use Servlet3Continuation if possible
Date Tue, 06 Dec 2016 13:30:58 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 057b2a6d5 -> 892a4ca84


Making sure JettyHttpDestination can use Servlet3Continuation if possible


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

Branch: refs/heads/master
Commit: 892a4ca84b202fbef819dce97a3963ef1e663386
Parents: 057b2a6
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Tue Dec 6 13:30:40 2016 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Tue Dec 6 13:30:40 2016 +0000

----------------------------------------------------------------------
 .../apache/cxf/transport/http_jetty/JettyHTTPDestination.java | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/892a4ca8/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPDestination.java
----------------------------------------------------------------------
diff --git a/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPDestination.java
b/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPDestination.java
index 7dfaac6..16eb0e9 100644
--- a/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPDestination.java
+++ b/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPDestination.java
@@ -368,8 +368,11 @@ public class JettyHTTPDestination extends ServletDestination {
                       final HttpServletRequest req, 
                       final HttpServletResponse resp) {
         if (engine != null && engine.getContinuationsEnabled()) {
-            inMessage.put(ContinuationProvider.class.getName(), 
-                      new JettyContinuationProvider(req, resp, inMessage));
+            super.setupContinuation(inMessage, req, resp);
+            if (!inMessage.containsKey(ContinuationProvider.class.getName())) {
+                inMessage.put(ContinuationProvider.class.getName(), 
+                    new JettyContinuationProvider(req, resp, inMessage));
+            }
         }
     }
     


Mime
View raw message