abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r441552 - /incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/SimpleTargetResolver.java
Date Fri, 08 Sep 2006 16:25:28 GMT
Author: jmsnell
Date: Fri Sep  8 09:25:26 2006
New Revision: 441552

URL: http://svn.apache.org/viewvc?view=rev&rev=441552
Log:
Fix for an API change.

setPattern is more descriptive of the 1-to-1 relationship

Modified:
    incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/SimpleTargetResolver.java

Modified: incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/SimpleTargetResolver.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/SimpleTargetResolver.java?view=diff&rev=441552&r1=441551&r2=441552
==============================================================================
--- incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/SimpleTargetResolver.java
(original)
+++ incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/SimpleTargetResolver.java
Fri Sep  8 09:25:26 2006
@@ -24,9 +24,9 @@
   extends RegexTargetResolver {
 
   public SimpleTargetResolver() {
-    addPattern(ResourceType.SERVICE, "/appserver/atom(\\?[^#]*)?");
-    addPattern(ResourceType.COLLECTION, "/appserver/atom/([^/#?]+)(\\?[^#]*)?");
-    addPattern(ResourceType.ENTRY_EDIT, "/appserver/atom/([^/#?]+)/([^/#?]+)(\\?[^#]*)?");
+    setPattern(ResourceType.SERVICE, "/appserver/atom(\\?[^#]*)?");
+    setPattern(ResourceType.COLLECTION, "/appserver/atom/([^/#?]+)(\\?[^#]*)?");
+    setPattern(ResourceType.ENTRY_EDIT, "/appserver/atom/([^/#?]+)/([^/#?]+)(\\?[^#]*)?");
   }
   
 }



Mime
View raw message