org.apache.commons.feedparser.locate
Class FeedLocator
java.lang.Object
|
+--org.apache.commons.feedparser.locate.FeedLocator
- public class FeedLocator
- extends java.lang.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 );
|
Method Summary |
static FeedList |
locate(java.lang.String resource)
Locate all feeds within the given resource. |
static FeedList |
locate(java.lang.String resource,
java.lang.String content)
Locate the feed with the given content. |
static void |
main(java.lang.String[] args)
|
| 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(java.lang.String resource)
throws java.lang.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
java.lang.Exception
locate
public static final FeedList locate(java.lang.String resource,
java.lang.String content)
throws java.lang.Exception
- Locate the feed with the given content.
java.lang.Exception
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
Copyright © 2004-2006 Apache Software Foundation. All Rights Reserved.