tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject tomee git commit: wrap http request in CdiRequest only when async is supported
Date Tue, 24 Mar 2015 16:15:24 GMT
Repository: tomee
Updated Branches:
  refs/heads/master 83c9d14c6 -> 639abb87a


wrap http request in CdiRequest only when async is supported


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

Branch: refs/heads/master
Commit: 639abb87ae8990455949b97a6ae4acb8ea732e12
Parents: 83c9d14
Author: Romain Manni-Bucau <rmannibucau@apache.org>
Authored: Tue Mar 24 17:15:14 2015 +0100
Committer: Romain Manni-Bucau <rmannibucau@apache.org>
Committed: Tue Mar 24 17:15:14 2015 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/openejb/server/httpd/WebBeansFilter.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/639abb87/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/WebBeansFilter.java
----------------------------------------------------------------------
diff --git a/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/WebBeansFilter.java
b/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/WebBeansFilter.java
index f916c9d..0cffa27 100644
--- a/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/WebBeansFilter.java
+++ b/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/WebBeansFilter.java
@@ -48,7 +48,7 @@ public class WebBeansFilter implements Filter { // its pupose is to start/stop
r
             filterChain.doFilter(servletRequest, servletResponse);
             return;
         }
-        filterChain.doFilter(new CdiRequest(HttpServletRequest.class.cast(servletRequest)),
servletResponse);
+        filterChain.doFilter(servletRequest.isAsyncSupported() ? new CdiRequest(HttpServletRequest.class.cast(servletRequest))
: servletRequest, servletResponse);
     }
 
     @Override


Mime
View raw message