com.google.api.client.googleapis.xml.atom
Class AtomPatchRelativeToOriginalContent

java.lang.Object
  extended by com.google.api.client.xml.AbstractXmlHttpContent
      extended by com.google.api.client.googleapis.xml.atom.AtomPatchRelativeToOriginalContent
All Implemented Interfaces:
HttpContent

public final class AtomPatchRelativeToOriginalContent
extends AbstractXmlHttpContent

Serializes an optimal Atom XML PATCH HTTP content based on the data key/value mapping object for an Atom entry, by comparing the original value to the patched value.

Sample usage:

 
 static void setContent(HttpRequest request,
     XmlNamespaceDictionary namespaceDictionary, Object originalEntry,
     Object patchedEntry) {
   AtomPatchRelativeToOriginalContent content =
       new AtomPatchRelativeToOriginalContent();
   content.namespaceDictionary = namespaceDictionary;
   content.originalEntry = originalEntry;
   content.patchedEntry = patchedEntry;
   request.content = content;
 }
 
 

Since:
1.0
Author:
Yaniv Inbar

Field Summary
 Object originalEntry
          Key/value pair data for the original unmodified Atom entry.
 Object patchedEntry
          Key/value pair data for the updated/patched Atom entry.
 
Fields inherited from class com.google.api.client.xml.AbstractXmlHttpContent
contentType, namespaceDictionary
 
Constructor Summary
AtomPatchRelativeToOriginalContent()
           
 
Method Summary
protected  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

patchedEntry

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


originalEntry

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

Constructor Detail

AtomPatchRelativeToOriginalContent

public AtomPatchRelativeToOriginalContent()
Method Detail

writeTo

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


Copyright © 2010 Google. All Rights Reserved.