Class AtomPatchContent (2.4.1)

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

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
Type Description
AtomPatchContent
Overrides
com.google.api.client.http.xml.atom.AtomContent.setMediaType(com.google.api.client.http.HttpMediaType)