@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, writeTo
getNamespaceDictionary, writeTo
computeLength, computeLength, getCharset, getLength, getMediaType, getType, retrySupported
public 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 AtomContent
Copyright © 2010–2020 Google. All rights reserved.