org.apache.commons.feedparser.locate
Class FeedLocator

java.lang.Object
  extended by org.apache.commons.feedparser.locate.FeedLocator

public class FeedLocator
extends Object

Method to determine feed URLs from a given resource URI. For example, you would pass in the URI: http://www.codinginparadise.org and this class would pass back a List with one address of the feed URL, which is http://www.codinginparadise.org/weblog/atom.xml" String resource = "http://www.codinginparadise.org"; FeedList l = FeedLocator.locate( resource );

Author:
Kevin A. Burton

Constructor Summary
FeedLocator()
           
 
Method Summary
static FeedList locate(String resource)
          Locate all feeds within the given resource.
static FeedList locate(String resource, String content)
          Locate the feed with the given content.
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeedLocator

public FeedLocator()
Method Detail

locate

public static final FeedList locate(String resource)
                             throws Exception
Locate all feeds within the given resource. The resource should be a link to an (X)HTML document, usually a weblog or a website. Example: http://peerfear.org

Parameters:
resource - The weblog we need to discover
Throws:
Exception

locate

public static final FeedList locate(String resource,
                                    String content)
                             throws Exception
Locate the feed with the given content.

Throws:
Exception

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.