Package org.apache.camel.component.atom
Class AtomUtils
java.lang.Object
org.apache.camel.component.atom.AtomUtils
Atom utilities.
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.abdera.parser.Parser
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 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 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
-