« Blog server news | Main | Roller 2.1 available... »

Pebble and Blojsom and Atom protocol


I've used code from the excellent Pebble and Blojsom blog servers in the past (and given credit in the Roller CREDITS file). I'd love to be able to contribute back and now there's an opportunity to do that. So to Simon and David (or anybody else hacking those servers), if you want to get Atom protocol working in your server, the easiest way might be for you to bring in some code from Roller. I specifically designed our Atom protocol implementation to allow for sharing and to be free of Roller dependencies.

For example, here's how you'd do it for Pebble:
  • Bring the classes from the package org.roller.presentation.atomapi into Pebble (except for RollerAtomHandler, you won't need that one).
  • You'll also need to bring in the ROME and JDOM jars if you're not aleady using them.
  • Implement the interface AtomHandler with calls to the Pebble backend, call it PebbleAtomHandler or something similar.
  • Change one line of code in the AtomServlet method createAtomRequestHandler() to create your new PebbleAtomHandler instead of the Roller one.
And feel free to pepper me with questions along the way. I'd be happy to help and happy to make changes to make this sharing easier. I'm also considering the idea of an Atom Server Kit package in my Blogapps project (on second thought, ROME might be a better home).

When you're done, head over to the #atom channel on irc.freenode.net so we can do some interop testing with MatisseBlogger and other Atom protocol clients.
Comments:

Oh cool, cheers David! Sounds like something that could easily make it's way into Pebble 2.0.0-M2.

This may seem a silly question, but if I bring in source code from another OS project, what's the deal with the file headers/license/copyright? BTW, I like the idea of putting all this in ROME and you could provide the appropriate plugin points via configuration (e.g. AtomServlet -> AtomHandler). Thanks again, I'll take a look at the source.

Posted by Simon Brown on March 03, 2006 at 06:37 PM EST #

Hi Simon,

For Apache and BSD licenses, I believe all you need to do is to keep the original copyrights in place and then mention in your user guide or other documentation that "this product contains code from Project XXX, Copyright by YYY."

One thing I didn't mention is that the Atom protocol is not complete (its on draft 8 now). Until it is complete (I predict this summer), you might want to to make Atom protocol an optional feature.

Posted by Dave Johnson on March 03, 2006 at 06:59 PM EST #

Post a Comment:
  • HTML Syntax: NOT allowed

« Blog server news | Main | Roller 2.1 available... »

Welcome

This is just one entry in the weblog Blogging Roller. You may want to visit the main page of the weblog

Related entries

Below are the most recent entries in the category Blogging, some may be related to this entry.