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:
- com.google.api.client.http.HttpContent
public final class AtomPatchContent
- extends com.google.api.client.http.xml.atom.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
Fields inherited from class com.google.api.client.http.xml.atom.AtomContent |
entry |
Fields inherited from class com.google.api.client.http.xml.AbstractXmlHttpContent |
contentType, namespaceDictionary |
Methods inherited from class com.google.api.client.http.xml.atom.AtomContent |
forEntry, forFeed, getData, isEntry, setType, writeTo |
Methods inherited from class com.google.api.client.http.xml.AbstractXmlHttpContent |
getNamespaceDictionary, getType, 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 |
AtomPatchContent
@Deprecated
public AtomPatchContent()
- Deprecated. (scheduled to be removed in 1.6) Use
AtomPatchContent(XmlNamespaceDictionary, Object)
AtomPatchContent
public AtomPatchContent(com.google.api.client.xml.XmlNamespaceDictionary namespaceDictionary,
Object patchEntry)
- Parameters:
namespaceDictionary
- XML namespace dictionarypatchEntry
- key/value pair data for the Atom PATCH entry- Since:
- 1.5
Copyright © 2010-2011 Google. All Rights Reserved.