public final class AtomPatchRelativeToOriginalContent
extends com.google.api.client.http.xml.AbstractXmlHttpContent
Sample usage:
static void setContent(HttpRequest request, XmlNamespaceDictionary namespaceDictionary,
Object originalEntry, Object patchedEntry) {
request.setContent(
new AtomPatchRelativeToOriginalContent(namespaceDictionary, originalEntry, patchedEntry));
}
| Constructor and Description |
|---|
AtomPatchRelativeToOriginalContent(com.google.api.client.xml.XmlNamespaceDictionary namespaceDictionary,
Object originalEntry,
Object patchedEntry) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getOriginalEntry()
Returns the data key name/value pairs for the original unmodified Atom entry.
|
Object |
getPatchedEntry()
Returns the data key name/value pairs for the updated/patched Atom entry.
|
AtomPatchRelativeToOriginalContent |
setMediaType(com.google.api.client.http.HttpMediaType mediaType) |
protected void |
writeTo(org.xmlpull.v1.XmlSerializer serializer) |
getNamespaceDictionary, writeToprotected void writeTo(org.xmlpull.v1.XmlSerializer serializer)
throws IOException
writeTo in class com.google.api.client.http.xml.AbstractXmlHttpContentIOExceptionpublic AtomPatchRelativeToOriginalContent setMediaType(com.google.api.client.http.HttpMediaType mediaType)
setMediaType in class com.google.api.client.http.xml.AbstractXmlHttpContentpublic final Object getPatchedEntry()
public final Object getOriginalEntry()
Copyright © 2010-2013 Google. All Rights Reserved.