abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r616033 - /incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/test/custom/SimpleAdapter.java
Date Mon, 28 Jan 2008 20:43:01 GMT
Author: jmsnell
Date: Mon Jan 28 12:42:59 2008
New Revision: 616033

URL: http://svn.apache.org/viewvc?rev=616033&view=rev
Log:
have the simpleadapter use the urlfor method for getting the collection uri

Modified:
    incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/test/custom/SimpleAdapter.java

Modified: incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/test/custom/SimpleAdapter.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/test/custom/SimpleAdapter.java?rev=616033&r1=616032&r2=616033&view=diff
==============================================================================
--- incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/test/custom/SimpleAdapter.java
(original)
+++ incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/test/custom/SimpleAdapter.java
Mon Jan 28 12:42:59 2008
@@ -55,7 +55,9 @@
   }
 
   public String getHref(RequestContext request) {
-    return "atom/feed";
+    Map<String,Object> params = new HashMap<String,Object>();
+    params.put("collection","feed");
+    return request.urlFor(TargetType.TYPE_COLLECTION, params);
   }
 
   public String getTitle(RequestContext request) {



Mime
View raw message