@Beta public final class AtomPatchRelativeToOriginalContent extends 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(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(HttpMediaType mediaType) |
protected void |
writeTo(org.xmlpull.v1.XmlSerializer serializer) |
getNamespaceDictionary, writeTo
computeLength, computeLength, getCharset, getLength, getMediaType, getType, retrySupported
public AtomPatchRelativeToOriginalContent(XmlNamespaceDictionary namespaceDictionary, Object originalEntry, Object patchedEntry)
namespaceDictionary
- XML namespace dictionaryprotected void writeTo(org.xmlpull.v1.XmlSerializer serializer) throws IOException
writeTo
in class AbstractXmlHttpContent
IOException
public AtomPatchRelativeToOriginalContent setMediaType(HttpMediaType mediaType)
setMediaType
in class AbstractXmlHttpContent
public final Object getPatchedEntry()
public final Object getOriginalEntry()
Copyright © 2010–2019 Google. All rights reserved.