cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dand...@apache.org
Subject svn commit: r552642 - /incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/StaxInInterceptor.java
Date Tue, 03 Jul 2007 01:53:28 GMT
Author: dandiep
Date: Mon Jul  2 18:53:27 2007
New Revision: 552642

URL: http://svn.apache.org/viewvc?view=rev&rev=552642
Log:
Tweak StaxInInterceptor to check for an existing stream reader.

Modified:
    incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/StaxInInterceptor.java

Modified: incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/StaxInInterceptor.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/StaxInInterceptor.java?view=diff&rev=552642&r1=552641&r2=552642
==============================================================================
--- incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/StaxInInterceptor.java
(original)
+++ incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/StaxInInterceptor.java
Mon Jul  2 18:53:27 2007
@@ -53,8 +53,8 @@
     }
 
     public void handleMessage(Message message) {
-        if (isGET(message)) {
-            LOG.info("StaxInInterceptor skipped in HTTP GET method");
+        if (isGET(message) || message.getContentFormats().contains(XMLStreamReader.class))
{
+            LOG.info("StaxInInterceptor skipped.");
             return;
         }
         InputStream is = message.getContent(InputStream.class);



Mime
View raw message