public final class AtomPatchRelativeToOriginalContent extends AbstractXmlHttpContent
Beta
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) {
request.setContent(new AtomPatchRelativeToOriginalContent(
namespaceDictionary, originalEntry, patchedEntry));
}
Inheritance
Object > AbstractHttpContent > com.google.api.client.http.xml.AbstractXmlHttpContent > AtomPatchRelativeToOriginalContentConstructors
AtomPatchRelativeToOriginalContent(XmlNamespaceDictionary namespaceDictionary, Object originalEntry, Object patchedEntry)
public AtomPatchRelativeToOriginalContent(XmlNamespaceDictionary namespaceDictionary, Object originalEntry, Object patchedEntry)
Name | Description |
namespaceDictionary | com.google.api.client.xml.XmlNamespaceDictionary XML namespace dictionary |
originalEntry | Object |
patchedEntry | Object |
Methods
getOriginalEntry()
public final Object getOriginalEntry()
Returns the data key name/value pairs for the original unmodified Atom entry.
Type | Description |
Object |
getPatchedEntry()
public final Object getPatchedEntry()
Returns the data key name/value pairs for the updated/patched Atom entry.
Type | Description |
Object |
setMediaType(HttpMediaType mediaType)
public AtomPatchRelativeToOriginalContent setMediaType(HttpMediaType mediaType)
Name | Description |
mediaType | com.google.api.client.http.HttpMediaType |
Type | Description |
AtomPatchRelativeToOriginalContent |
com.google.api.client.http.xml.AbstractXmlHttpContent.setMediaType(com.google.api.client.http.HttpMediaType)
writeTo(XmlSerializer serializer)
protected void writeTo(XmlSerializer serializer)
Name | Description |
serializer | org.xmlpull.v1.XmlSerializer |
com.google.api.client.http.xml.AbstractXmlHttpContent.writeTo(org.xmlpull.v1.XmlSerializer)
Exceptions
Type | Description |
IOException |