コード例 #1
0
 @GET
 @Path("atomsyndfeed")
 @Produces("application/atom+xml")
 public SyndFeed getSyndFeed() throws IOException {
   AtomFeed feed = AtomFeed.unmarshal(new StringReader(FEED));
   return feed.toSynd(new SyndFeed());
 }
コード例 #2
0
 @GET
 @Path("atomfeedelement")
 @Produces("application/atom+xml")
 public JAXBElement<AtomFeed> getAtomFeedElement() throws IOException {
   AtomFeed feed = AtomFeed.unmarshal(new StringReader(FEED));
   org.apache.wink.common.model.atom.ObjectFactory of =
       new org.apache.wink.common.model.atom.ObjectFactory();
   return of.createFeed(feed);
 }