|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.api.client.http.AbstractHttpContent
com.google.api.client.http.xml.AbstractXmlHttpContent
com.google.api.client.googleapis.xml.atom.AtomPatchRelativeToOriginalContent
public final class AtomPatchRelativeToOriginalContent
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));
}
| Field Summary | |
|---|---|
Object |
originalEntry
Deprecated. (scheduled to be made private final in 1.6) Use getOriginalEntry() |
Object |
patchedEntry
Deprecated. (scheduled to be made private final in 1.6) Use getPatchedEntry() |
| Fields inherited from class com.google.api.client.http.xml.AbstractXmlHttpContent |
|---|
contentType, namespaceDictionary |
| Constructor Summary | |
|---|---|
AtomPatchRelativeToOriginalContent()
Deprecated. (scheduled to be removed in 1.6) Use AtomPatchRelativeToOriginalContent(XmlNamespaceDictionary, Object, Object) |
|
AtomPatchRelativeToOriginalContent(com.google.api.client.xml.XmlNamespaceDictionary namespaceDictionary,
Object originalEntry,
Object patchedEntry)
|
|
| Method Summary | |
|---|---|
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. |
protected void |
writeTo(org.xmlpull.v1.XmlSerializer serializer)
|
| Methods inherited from class com.google.api.client.http.xml.AbstractXmlHttpContent |
|---|
getNamespaceDictionary, getType, setType, writeTo |
| Methods inherited from class com.google.api.client.http.AbstractHttpContent |
|---|
computeLength, getEncoding, getLength, retrySupported |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@Deprecated public Object patchedEntry
getPatchedEntry()
@Deprecated public Object originalEntry
getOriginalEntry()
| Constructor Detail |
|---|
@Deprecated public AtomPatchRelativeToOriginalContent()
AtomPatchRelativeToOriginalContent(XmlNamespaceDictionary, Object, Object)
public AtomPatchRelativeToOriginalContent(com.google.api.client.xml.XmlNamespaceDictionary namespaceDictionary,
Object originalEntry,
Object patchedEntry)
namespaceDictionary - XML namespace dictionary| Method Detail |
|---|
protected void writeTo(org.xmlpull.v1.XmlSerializer serializer)
throws IOException
writeTo in class com.google.api.client.http.xml.AbstractXmlHttpContentIOExceptionpublic final Object getPatchedEntry()
public final Object getOriginalEntry()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||