Hi guys,
We're moving from cxf with Abdera for Atom
to RestEasy with RestEasy's atom support.
So far, most of the migration has been a breeze, but this part is unclear:
In Cxf Abdera we got:
Entry e = factory.newEntry();
...
//generate meta data
ExtensibleElement extension = entry.addExtension(METADATA);
ExtensibleElement childExtension =
extension.addExtension(ARCHIVED);
//childExtension.setAttributeValue("type",
ArtifactsRepository.METADATA_TYPE_STRING);
childExtension.addSimpleExtension(VALUE, p.isArchived() ?
"true" : "false");
childExtension = extension.addExtension(UUID);
childExtension.addSimpleExtension(VALUE, p.getUUID());
...
Content content = factory.newContent();
...
entry.setContentElement(content);
How does the ExtensibleElement stuff translate to RestEasy's atom support?
Entry e = new Entry();
...
// TODO ExtensibleElement stuff
...
Content content = new Content();
...
e.setContent(content);
The manual does seem to imply that's possibly, only just not how:
"Feeds are composed of a number of items, known as "entries", each with
an extensible set of attached metadata."
http://docs.jboss.org/resteasy/docs/2.3.1.GA/userguide/html_single/index.html#Atom
Thank in advance for any help.
--
With kind regards,
Geoffrey De Smet
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Resteasy-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/resteasy-users