com.google.api.client.googleapis.xml.atom
Class AtomPatchRelativeToOriginalContent
java.lang.Object
com.google.api.client.xml.AbstractXmlHttpContent
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
|
Method Summary |
protected void |
writeTo(org.xmlpull.v1.XmlSerializer serializer)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
AtomPatchRelativeToOriginalContent
public AtomPatchRelativeToOriginalContent()
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.