com.google.api.client.googleapis.xml.atom
Class AtomPatchContent

java.lang.Object
  extended by com.google.api.client.http.AbstractHttpContent
      extended by com.google.api.client.http.xml.AbstractXmlHttpContent
          extended by com.google.api.client.http.xml.atom.AtomContent
              extended by com.google.api.client.googleapis.xml.atom.AtomPatchContent
All Implemented Interfaces:
com.google.api.client.http.HttpContent

public final class AtomPatchContent
extends com.google.api.client.http.xml.atom.AtomContent

Serializes Atom XML PATCH HTTP content based on the data key/value mapping object for an Atom entry.

Default value for AbstractXmlHttpContent.getType() is XmlHttpParser.CONTENT_TYPE.

Sample usage:

 
  static void setContent(
      HttpRequest request, XmlNamespaceDictionary namespaceDictionary, Object patchEntry) {
    request.setContent(new AtomPatchContent(namespaceDictionary, patchEntry));
  }
 
 

Implementation is not thread-safe.

Since:
1.0
Author:
Yaniv Inbar

Field Summary
 
Fields inherited from class com.google.api.client.http.xml.atom.AtomContent
entry
 
Fields inherited from class com.google.api.client.http.xml.AbstractXmlHttpContent
contentType, namespaceDictionary
 
Constructor Summary
AtomPatchContent()
          Deprecated. (scheduled to be removed in 1.6) Use AtomPatchContent(XmlNamespaceDictionary, Object)
AtomPatchContent(com.google.api.client.xml.XmlNamespaceDictionary namespaceDictionary, Object patchEntry)
           
 
Method Summary
 
Methods inherited from class com.google.api.client.http.xml.atom.AtomContent
forEntry, forFeed, getData, isEntry, setType, writeTo
 
Methods inherited from class com.google.api.client.http.xml.AbstractXmlHttpContent
getNamespaceDictionary, getType, writeTo
 
Methods inherited from class com.google.api.client.http.AbstractHttpContent
computeLength, getEncoding, getLength, retrySupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtomPatchContent

@Deprecated
public AtomPatchContent()
Deprecated. (scheduled to be removed in 1.6) Use AtomPatchContent(XmlNamespaceDictionary, Object)


AtomPatchContent

public AtomPatchContent(com.google.api.client.xml.XmlNamespaceDictionary namespaceDictionary,
                        Object patchEntry)
Parameters:
namespaceDictionary - XML namespace dictionary
patchEntry - key/value pair data for the Atom PATCH entry
Since:
1.5


Copyright © 2010-2011 Google. All Rights Reserved.