Hello All,
I am a newbie to this pub/sub protocol. Sorry if my questions are very naive. Could you help me by answering my questions. I started off creating an atom feed using ROME API looking at the example given on its wiki.
SyndFeed feed = new SyndFeedImpl();
feed.setFeedType("atom_1.0");
feed.setTitle("Sample Feed (created with ROME)");
feed.setLink("http://www.example.com");
feed.setDescription("This feed has been created using ROME";
List entries = new ArrayList();
SyndEntry entry;
SyndContent description;
entry = new SyndEntryImpl();
entry.setTitle("ROME v1.0");
entry.setLink("http://wiki.java.net/bin/view/Javawsxml/Rome01");
entry.setPublishedDate(DATE_PARSER.parse("2010-04-09"));
description = new SyndContentImpl();
description.setType("text/plain");
description.setValue("Initial release of ROME");
entry.setDescription(description);
entries.add(entry);
feed.setEntries(entries);
I am writing this into a file atomfeed.xml. The default rel-attribute in the tag is . How do I set different rel-attributes using this SyndFeed's or SyndEntry's setLink() method ?
How should I publish this atomfeed.xml feed onto the web(not on any blog).Can I create a directory in my public_html folder and just publish it with that dir in my URL ? Is this the correct way of doing it ? And every time I want to add a new entry can I just update this and keep publishing it on the web ?
How is Publisher Client different from Publisher ?
Thanks for your time and help