org.apache.commons.feedparser.locate
Class DiscoveryLocator
java.lang.Object
org.apache.commons.feedparser.locate.DiscoveryLocator
public class DiscoveryLocator
- extends Object
http://www.ietf.org/internet-drafts/draft-ietf-atompub-autodiscovery-00.txt
- Author:
- Kevin A. Burton
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiscoveryLocator
public DiscoveryLocator()
locate
public static final List locate(String resource,
String content,
FeedList list)
throws Exception
- Locate a feed via RSS/Atom auto-discovery. If both Atom and RSS are
listed we return both. Actually we return all Atom/RSS or XML feeds
including FOAF. It's up to the caller to use the correct feed.
- Throws:
Exception
getAttributes
public static HashMap getAttributes(String content)
- Parse attributes within elements into a hashmap.
Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.