com.google.api.client.http.xml.atom
Class AtomFeedContent
java.lang.Object
com.google.api.client.http.AbstractHttpContent
com.google.api.client.http.xml.AbstractXmlHttpContent
com.google.api.client.http.xml.atom.AtomFeedContent
- All Implemented Interfaces:
- HttpContent
Deprecated. (scheduled to be removed in 1.6) Use AtomContent.forFeed(com.google.api.client.xml.XmlNamespaceDictionary, java.lang.Object)
@Deprecated
public class AtomFeedContent
- extends AbstractXmlHttpContent
Serializes Atom XML HTTP content based on the data key/value mapping object for an Atom feed.
Default value for AbstractXmlHttpContent.contentType
is Atom.CONTENT_TYPE
.
Sample usage:
static void setContent(
HttpRequest request, XmlNamespaceDictionary namespaceDictionary, Object feed) {
AtomFeedContent content = new AtomFeedContent();
content.namespaceDictionary = namespaceDictionary;
content.feed = feed;
request.content = content;
}
- Since:
- 1.4
- Author:
- Yaniv Inbar
Field Summary |
Object |
feed
Deprecated. Key/value pair data for the Atom feed. |
Method Summary |
void |
writeTo(org.xmlpull.v1.XmlSerializer serializer)
Deprecated. Writes the content to the given XML serializer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
feed
public Object feed
- Deprecated.
- Key/value pair data for the Atom feed.
AtomFeedContent
public AtomFeedContent()
- Deprecated.
writeTo
public final void writeTo(org.xmlpull.v1.XmlSerializer serializer)
throws IOException
- Deprecated.
- Description copied from class:
AbstractXmlHttpContent
- Writes the content to the given XML serializer.
- Specified by:
writeTo
in class AbstractXmlHttpContent
- Throws:
IOException
- I/O exception
Copyright © 2011 Google. All Rights Reserved.