cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1559683 - /cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Servlet3ContinuationProvider.java
Date Mon, 20 Jan 2014 13:15:26 GMT
Author: sergeyb
Date: Mon Jan 20 13:15:26 2014
New Revision: 1559683

URL: http://svn.apache.org/r1559683
Log:
[CXF-5417] Fixing a typo, making sure a user can set IOException class name

Modified:
    cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Servlet3ContinuationProvider.java

Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Servlet3ContinuationProvider.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Servlet3ContinuationProvider.java?rev=1559683&r1=1559682&r2=1559683&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Servlet3ContinuationProvider.java
(original)
+++ cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Servlet3ContinuationProvider.java
Mon Jan 20 13:15:26 2014
@@ -174,7 +174,11 @@ public class Servlet3ContinuationProvide
         }
         private boolean isClientDisconnected(Exception ex) {
             String exName = (String)inMessage.getContextualProperty("disconnected.client.exception.class");
-            return ex != null && exName.equals(ex.getClass().getName());
+            if (exName != null && ex instanceof IOException) {
+                return exName.equals(IOException.class.getName()) || exName.equals(ex.getClass().getName());
+            } else {
+                return false;
+            }
         }
         
     }



Mime
View raw message