Package org.apache.camel.component.atom
Class AtomUtils
- java.lang.Object
-
- org.apache.camel.component.atom.AtomUtils
-
public final class AtomUtils extends Object
Atom utilities.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.static org.apache.abdera.model.Document<org.apache.abdera.model.Feed>
parseDocument(String uri, String username, String password)
-
-
-
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 uriorg.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
-
-