abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r443034 - /incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/SimpleProvider.java
Date Wed, 13 Sep 2006 17:12:05 GMT
Author: jmsnell
Date: Wed Sep 13 10:12:04 2006
New Revision: 443034

URL: http://svn.apache.org/viewvc?view=rev&rev=443034
Log:
Set the ContentLocation header on create response as suggested by Draft -10

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

Modified: incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/SimpleProvider.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/SimpleProvider.java?view=diff&rev=443034&r1=443033&r2=443034
==============================================================================
--- incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/SimpleProvider.java
(original)
+++ incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/SimpleProvider.java
Wed Sep 13 10:12:04 2006
@@ -156,6 +156,7 @@
           BaseResponseContext rc = new BaseResponseContext(entry);
           URI baseUri = resolveBase(request);
           rc.setLocation(baseUri.resolve(entry.getEditLinkResolvedHref()).toString());
+          rc.setContentLocation(rc.getLocation().toString());
           rc.setEntityTag(calculateEntityTag(entry));
           rc.setStatus(201);
           return rc;



Mime
View raw message