Serializes Atom XML HTTP content based on the data key/value mapping object for an Atom entry.
Default value for {@link #getType()} is {@link Atom#MEDIA_TYPE}.
Sample usages:
static void setAtomEntryContent( HttpRequest request, XmlNamespaceDictionary namespaceDictionary, Object entry) { request.setContent(AtomContent.forEntry(namespaceDictionary, entry)); } static void setAtomBatchContent( HttpRequest request, XmlNamespaceDictionary namespaceDictionary, Object batchFeed) { request.setContent(AtomContent.forFeed(namespaceDictionary, batchFeed)); }
Implementation is not thread-safe.
@since 1.4
@author Yaniv Inbar