Send feedback
Class AtomPatchContent (1.35.2)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.35.2 keyboard_arrow_down
public final class AtomPatchContent extends AtomContent
Beta
Serializes Atom XML PATCH HTTP content based on the data key/value mapping object for an Atom
entry.
Default value for #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.
Inheritance
Object >
AbstractHttpContent >
com.google.api.client.http.xml.AbstractXmlHttpContent >
com.google.api.client.http.xml.atom.AtomContent >
AtomPatchContent
Inherited Members
com.google.api.client.http.AbstractHttpContent.computeLength()
com.google.api.client.http.AbstractHttpContent.computeLength(com.google.api.client.http.HttpContent)
com.google.api.client.http.AbstractHttpContent.getCharset()
com.google.api.client.http.AbstractHttpContent.getLength()
com.google.api.client.http.AbstractHttpContent.getMediaType()
com.google.api.client.http.AbstractHttpContent.getType()
com.google.api.client.http.AbstractHttpContent.retrySupported()
com.google.api.client.http.xml.AbstractXmlHttpContent.getNamespaceDictionary()
com.google.api.client.http.xml.AbstractXmlHttpContent.writeTo(java.io.OutputStream)
com.google.api.client.http.xml.atom.AtomContent.forEntry(com.google.api.client.xml.XmlNamespaceDictionary,java.lang.Object)
com.google.api.client.http.xml.atom.AtomContent.forFeed(com.google.api.client.xml.XmlNamespaceDictionary,java.lang.Object)
com.google.api.client.http.xml.atom.AtomContent.getData()
com.google.api.client.http.xml.atom.AtomContent.isEntry()
com.google.api.client.http.xml.atom.AtomContent.setMediaType(com.google.api.client.http.HttpMediaType)
com.google.api.client.http.xml.atom.AtomContent.writeTo(org.xmlpull.v1.XmlSerializer)
Constructors
AtomPatchContent(XmlNamespaceDictionary namespaceDictionary, Object patchEntry)
public AtomPatchContent ( XmlNamespaceDictionary namespaceDictionary , Object patchEntry )
Parameters
Name Description namespaceDictionary com.google.api.client.xml.XmlNamespaceDictionary
XML namespace dictionary
patchEntry Object
key/value pair data for the Atom PATCH entry
Methods
setMediaType(HttpMediaType mediaType)
public AtomPatchContent setMediaType ( HttpMediaType mediaType )
Parameter
Name Description mediaType com.google.api.client.http.HttpMediaType
Returns
Overrides
com.google.api.client.http.xml.atom.AtomContent.setMediaType(com.google.api.client.http.HttpMediaType)
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]