org.apache.commons.feedparser.locate
Class FeedLocator
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FeedLocator
public FeedLocator()
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.