1

I want to create atom xml representations for my REST resources using Restlet.

Should I (can I?) use ROME or just use the Atom extension for Restlet?

What's the best way to go about this?

Thanks in advance.

Dan Lowe
  • 51,713
  • 20
  • 123
  • 112
blank
  • 17,852
  • 20
  • 105
  • 159

2 Answers2

1

The best way is usually what suits your needs best :)

If you want to be up and running fast, you may prefer to use a helper library. Here I would also suggest to take a look at Apache Abdera.

The part that may be of concern with helper libraries is usually the number of external dependencies. If this is a deal breaker for you, then you may want to consider to write the code yourself.

Dieter
  • 1,154
  • 8
  • 7
  • I ended up going with the Restlet Atom classes, one less library to deal with. Now that I've played with that a bit I might try out Abdera and Rome just to compare. – blank Feb 08 '10 at 16:11
0

Creating atom xml isn't that difficult, I did it without helper libraries. You can look at the source code here.

Waverick
  • 1,984
  • 1
  • 11
  • 16