abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dand...@apache.org
Subject svn commit: r616543 - /incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/StructuredTargetResolver.java
Date Tue, 29 Jan 2008 22:24:56 GMT
Author: dandiep
Date: Tue Jan 29 14:24:55 2008
New Revision: 616543

URL: http://svn.apache.org/viewvc?rev=616543&view=rev
Log:
Didn't mean to make this change. I don't think this class will be quite as useful anymore.
I'll solicit feedback from the list, but I'm hoping we can get rid of it.

Modified:
    incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/StructuredTargetResolver.java

Modified: incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/StructuredTargetResolver.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/StructuredTargetResolver.java?rev=616543&r1=616542&r2=616543&view=diff
==============================================================================
--- incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/StructuredTargetResolver.java
(original)
+++ incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/StructuredTargetResolver.java
Tue Jan 29 14:24:55 2008
@@ -36,6 +36,7 @@
  * Resolves targets based on a simple assumed URI structure. 
  */
 public class StructuredTargetResolver
+  extends TemplateTargetBuilder
   implements Resolver<Target> {
 
   public static final String URI_PARAMETER_ATTRIBUTE_PREFIX = "uriParameter";
@@ -55,7 +56,10 @@
       this.servicesPattern = Pattern.compile(servicesPattern);
     }
     
-
+    setTemplate(TargetType.TYPE_SERVICE, "{target_base}");
+    setTemplate(TargetType.TYPE_COLLECTION, "{target_base}/{collection}");
+    setTemplate(TargetType.TYPE_CATEGORIES, "{target_base}/{collection};categories");
+    setTemplate(TargetType.TYPE_ENTRY, "{target_base}/{collection}/{entryid}");
   }
 
   public Target resolve(Request request) {



Mime
View raw message