Class AtomUtils

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

public final class AtomUtils extends Object
Atom utilities.
  • Method Details

    • 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
    • parseDocument

      public static org.apache.abdera.model.Document<org.apache.abdera.model.Feed> parseDocument(String uri, String username, String password) throws IOException
      Throws:
      IOException