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.