@Beta public final class AtomPatchContent extends AtomContent
Beta 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(XmlNamespaceDictionary namespaceDictionary,
Object patchEntry) |
| Modifier and Type | Method and Description |
|---|---|
AtomPatchContent |
setMediaType(HttpMediaType mediaType) |
forEntry, forFeed, getData, isEntry, writeTogetNamespaceDictionary, writeTocomputeLength, computeLength, getCharset, getLength, getMediaType, getType, retrySupportedpublic AtomPatchContent(XmlNamespaceDictionary namespaceDictionary, Object patchEntry)
namespaceDictionary - XML namespace dictionarypatchEntry - key/value pair data for the Atom PATCH entrypublic AtomPatchContent setMediaType(HttpMediaType mediaType)
setMediaType in class AtomContentCopyright © 2010–2022 Google. All rights reserved.