You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by di...@apache.org on 2009/07/24 15:30:21 UTC

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

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);