ws-commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r797439 - /webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/xop/XOPDecodingStreamReader.java
Date Fri, 24 Jul 2009 13:30:21 GMT
Author: dims
Date: Fri Jul 24 13:30:21 2009
New Revision: 797439

URL: http://svn.apache.org/viewvc?rev=797439&view=rev
Log:
add a couple of log debug(s)

Modified:
    webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/xop/XOPDecodingStreamReader.java

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/xop/XOPDecodingStreamReader.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/xop/XOPDecodingStreamReader.java?rev=797439&r1=797438&r2=797439&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/xop/XOPDecodingStreamReader.java
(original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/xop/XOPDecodingStreamReader.java
Fri Jul 24 13:30:21 2009
@@ -131,6 +131,9 @@
                     "a (single) href attribute");
         }
         String href = parent.getAttributeValue(0);
+        if(log.isDebugEnabled()){
+             log.debug("processXopInclude - found href : " + href);
+        }
         if (!href.startsWith("cid:")) {
             throw new XMLStreamException("Expected href attribute containing a URL in the
" +
                     "cid scheme");
@@ -141,6 +144,9 @@
             // characters are not allowed in content IDs, we can simply decode using ASCII
             // (which is a subset of UTF-8)
             contentID = URLDecoder.decode(href.substring(4), "ascii");
+            if(log.isDebugEnabled()){
+                 log.debug("processXopInclude - decoded contentID : " + contentID);
+            }
         } catch (UnsupportedEncodingException ex) {
             // We should never get here
             throw new XMLStreamException(ex);



Mime
View raw message