com.google.api.client.xml.atom
Class AtomContent

java.lang.Object
  extended by com.google.api.client.xml.AbstractXmlHttpContent
      extended by com.google.api.client.xml.atom.AtomContent
All Implemented Interfaces:
HttpContent
Direct Known Subclasses:
AtomPatchContent

public class AtomContent
extends AbstractXmlHttpContent

Serializes Atom XML HTTP content based on the data key/value mapping object for an Atom entry.

Default value for AbstractXmlHttpContent.contentType is Atom.CONTENT_TYPE.

Sample usage:

 
 static void setContent(HttpRequest request,
     XmlNamespaceDictionary namespaceDictionary, Object entry) {
   AtomContent content = new AtomContent();
   content.namespaceDictionary = namespaceDictionary;
   content.entry = entry;
   request.content = content;
 }
 
 

Since:
1.0
Author:
Yaniv Inbar

Field Summary
 Object entry
          Key/value pair data for the Atom entry.
 
Fields inherited from class com.google.api.client.xml.AbstractXmlHttpContent
contentType, namespaceDictionary
 
Constructor Summary
AtomContent()
           
 
Method Summary
 void writeTo(org.xmlpull.v1.XmlSerializer serializer)
           
 
Methods inherited from class com.google.api.client.xml.AbstractXmlHttpContent
getEncoding, getLength, getType, writeTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entry

public Object entry
Key/value pair data for the Atom entry.

Constructor Detail

AtomContent

public AtomContent()
Method Detail

writeTo

public final void writeTo(org.xmlpull.v1.XmlSerializer serializer)
                   throws IOException
Specified by:
writeTo in class AbstractXmlHttpContent
Throws:
IOException


Copyright © 2010 Google. All Rights Reserved.