com.google.api.client.http.xml.atom
Class AtomParser

java.lang.Object
  extended by com.google.api.client.http.xml.XmlHttpParser
      extended by 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 as long as the fields are not set directly (which is deprecated usage).

Sample usage:

 
  static void setParser(HttpRequest request, XmlNamespaceDictionary namespaceDictionary) {
    request.addParser(new AtomParser(namespaceDictionary));
  }
 
 

Since:
1.4
Author:
Yaniv Inbar

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.api.client.http.xml.XmlHttpParser
XmlHttpParser.Builder
 
Field Summary
 
Fields inherited from class com.google.api.client.http.xml.XmlHttpParser
CONTENT_TYPE, contentType, namespaceDictionary
 
Constructor Summary
AtomParser()
          Deprecated. (scheduled to be removed in 1.6) Use AtomParser(XmlNamespaceDictionary)
AtomParser(XmlNamespaceDictionary namespaceDictionary)
           
 
Method Summary
 
Methods inherited from class com.google.api.client.http.xml.XmlHttpParser
builder, getContentType, getNamespaceDictionary, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtomParser

@Deprecated
public AtomParser()
Deprecated. (scheduled to be removed in 1.6) Use AtomParser(XmlNamespaceDictionary)


AtomParser

public AtomParser(XmlNamespaceDictionary namespaceDictionary)
Parameters:
namespaceDictionary - XML namespace dictionary
Since:
1.5


Copyright © 2011 Google. All Rights Reserved.