org.apache.commons.feedparser.locate
Class DiscoveryLocator

java.lang.Object
  extended by 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

Constructor Summary
DiscoveryLocator()
           
 
Method Summary
static HashMap getAttributes(String content)
          Parse attributes within elements into a hashmap.
static List locate(String resource, String content, FeedList list)
          Locate a feed via RSS/Atom auto-discovery.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscoveryLocator

public DiscoveryLocator()
Method Detail

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.