@Beta
public final class AtomPatchRelativeToOriginalContent
extends com.google.api.client.http.xml.AbstractXmlHttpContent
Beta
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, writeTo
protected void writeTo(org.xmlpull.v1.XmlSerializer serializer) throws IOException
writeTo
in class com.google.api.client.http.xml.AbstractXmlHttpContent
IOException
public AtomPatchRelativeToOriginalContent setMediaType(com.google.api.client.http.HttpMediaType mediaType)
setMediaType
in class com.google.api.client.http.xml.AbstractXmlHttpContent
public final Object getPatchedEntry()
public final Object getOriginalEntry()
Copyright © 2010–2019 Google. All rights reserved.