org.apache.camel.component.atom
Class AtomUtils

java.lang.Object
  extended by org.apache.camel.component.atom.AtomUtils

public final class AtomUtils
extends Object

Atom utilities.


Method Summary
static org.apache.abdera.parser.Parser getAtomParser()
          Gets the Atom parser.
static org.apache.abdera.model.Document<org.apache.abdera.model.Feed> parseDocument(String uri)
          Parses the given uri and returns the response as a atom feed document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAtomParser

public static org.apache.abdera.parser.Parser getAtomParser()
Gets the Atom parser.


parseDocument

public static org.apache.abdera.model.Document<org.apache.abdera.model.Feed> parseDocument(String uri)
                                                                                    throws IOException,
                                                                                           org.apache.abdera.parser.ParseException
Parses the given uri and returns the response as a atom feed document.

Parameters:
uri - the uri for the atom feed.
Returns:
the document
Throws:
IOException - is thrown if error reading from the uri
org.apache.abdera.parser.ParseException - is thrown if the parsing failed


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.