public final class AtomPatchContent
extends com.google.api.client.http.xml.atom.AtomContent
Default value for AbstractHttpContent.getType() is Xml.MEDIA_TYPE.
Sample usage:
static void setContent(
HttpRequest request, XmlNamespaceDictionary namespaceDictionary, Object patchEntry) {
request.setContent(new AtomPatchContent(namespaceDictionary, patchEntry));
}
Implementation is not thread-safe.
| Constructor and Description |
|---|
AtomPatchContent(com.google.api.client.xml.XmlNamespaceDictionary namespaceDictionary,
Object patchEntry) |
| Modifier and Type | Method and Description |
|---|---|
AtomPatchContent |
setMediaType(com.google.api.client.http.HttpMediaType mediaType) |
forEntry, forFeed, getData, isEntry, writeTogetNamespaceDictionary, writeTopublic AtomPatchContent(com.google.api.client.xml.XmlNamespaceDictionary namespaceDictionary,
Object patchEntry)
namespaceDictionary - XML namespace dictionarypatchEntry - key/value pair data for the Atom PATCH entrypublic AtomPatchContent setMediaType(com.google.api.client.http.HttpMediaType mediaType)
setMediaType in class com.google.api.client.http.xml.atom.AtomContentCopyright © 2010-2013 Google. All Rights Reserved.