abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r440881 - /incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/SimpleRequestHandler.java
Date Wed, 06 Sep 2006 21:37:43 GMT
Author: jmsnell
Date: Wed Sep  6 14:37:42 2006
New Revision: 440881

URL: http://svn.apache.org/viewvc?view=rev&rev=440881
Log:
Set content-type on the response context

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

Modified: incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/SimpleRequestHandler.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/SimpleRequestHandler.java?view=diff&rev=440881&r1=440880&r2=440881
==============================================================================
--- incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/SimpleRequestHandler.java
(original)
+++ incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/SimpleRequestHandler.java
Wed Sep  6 14:37:42 2006
@@ -237,6 +237,7 @@
     Document<Entry> entry_doc = entry.getDocument();
     BaseResponseContext<Document<Entry>> rc =
       new BaseResponseContext<Document<Entry>>(entry_doc);
+    rc.setContentType("application/atom+xml");
     return rc;
   }
   
@@ -245,12 +246,14 @@
       new BaseResponseContext<Document<Service>>(getService());
     rc.setEntityTag("\"service\"");
     rc.setLastModified(new Date());
+    rc.setContentType("application/atomserv+xml");
     return rc;
   }
   
   private BaseResponseContext<Document<Feed>> getFeedDocument() {
     BaseResponseContext<Document<Feed>> rc =
       new BaseResponseContext<Document<Feed>>(getFeed());
+    rc.setContentType("application/atom+xml");
     return rc;
   }
   



Mime
View raw message