com.google.api.client.http.xml.atom
Class AtomParser
java.lang.Object
com.google.api.client.http.xml.XmlHttpParser
com.google.api.client.http.xml.atom.AtomParser
- All Implemented Interfaces:
- HttpParser
public final class AtomParser
- extends XmlHttpParser
Atom XML HTTP parser into an data class of key/value pairs.
It overrides the XmlHttpParser.getContentType()
to Atom.CONTENT_TYPE
.
Implementation is thread-safe.
Sample usage:
static void setParser(HttpRequest request, XmlNamespaceDictionary namespaceDictionary) {
request.addParser(new AtomParser(namespaceDictionary));
}
- Since:
- 1.4
- Author:
- Yaniv Inbar
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AtomParser
public AtomParser(XmlNamespaceDictionary namespaceDictionary)
- Parameters:
namespaceDictionary
- XML namespace dictionary- Since:
- 1.5
Copyright © 2011 Google. All Rights Reserved.