com.google.api.client.googleapis.xml.atom
Class AtomPatchContent
java.lang.Object
com.google.api.client.http.AbstractHttpContent
com.google.api.client.http.xml.AbstractXmlHttpContent
com.google.api.client.http.xml.atom.AtomContent
com.google.api.client.googleapis.xml.atom.AtomPatchContent
- All Implemented Interfaces:
- HttpContent
public final class AtomPatchContent
- extends AtomContent
Serializes Atom XML PATCH HTTP content based on the data key/value mapping object for an Atom
entry.
Default value for AbstractXmlHttpContent.getType()
is XmlHttpParser.CONTENT_TYPE
.
Sample usage:
static void setContent(
HttpRequest request, XmlNamespaceDictionary namespaceDictionary, Object patchEntry) {
request.setContent(new AtomPatchContent(namespaceDictionary, patchEntry));
}
Implementation is not thread-safe.
- Since:
- 1.0
- Author:
- Yaniv Inbar
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AtomPatchContent
public AtomPatchContent(XmlNamespaceDictionary namespaceDictionary,
Object patchEntry)
- Parameters:
namespaceDictionary
- XML namespace dictionarypatchEntry
- key/value pair data for the Atom PATCH entry- Since:
- 1.5
Copyright © 2010-2012 Google. All Rights Reserved.