abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r442259 - /incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/util/RegexTargetResolver.java
Date Mon, 11 Sep 2006 17:08:56 GMT
Author: jmsnell
Date: Mon Sep 11 10:08:55 2006
New Revision: 442259

URL: http://svn.apache.org/viewvc?view=rev&rev=442259
Log:
RegexTarget toString implementation

Modified:
    incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/util/RegexTargetResolver.java

Modified: incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/util/RegexTargetResolver.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/util/RegexTargetResolver.java?view=diff&rev=442259&r1=442258&r2=442259
==============================================================================
--- incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/util/RegexTargetResolver.java
(original)
+++ incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/util/RegexTargetResolver.java
Mon Sep 11 10:08:55 2006
@@ -173,7 +173,27 @@
       return true;
     }
     
-    
+    public String toString() {
+      String m = matcher.group(0);
+      String p = matcher.pattern().pattern();
+      StringBuffer buf = new StringBuffer();
+      buf.append("RegexTarget[");
+      buf.append(p);
+      buf.append(" ==> ");
+      buf.append(m);
+      buf.append("] = ");
+      buf.append(type.toString());
+      buf.append("\n");
+      int n = -1;
+      while(hasValue(++n)) {
+        buf.append("    ");
+        buf.append(n);
+        buf.append(" = ");
+        buf.append(getValue(n));
+        buf.append("\n");
+      }
+      return buf.toString();
+    }
   }
   
 }



Mime
View raw message