org.apache.commons.feedparser.locate
Class ProbeLocator
java.lang.Object
org.apache.commons.feedparser.locate.ProbeLocator
public class ProbeLocator
- extends Object
Locator which uses Link probing. It also attempts to determine the type of
blog service provider it is dealing with, such as BlogSpot, Blogsxom, etc.,
in order to find feed URLs that are not specified through autodiscovery.
If ProbeLocator.AGGRESIVE_PROBING_ENABLED is true (by default it is false),
then we probe for links.
- Author:
- Kevin A. Burton
Field Summary |
static boolean |
AGGRESIVE_PROBING_ENABLED
If true, then we aggresively probe a site if it doesn't have
autodiscovery. |
static boolean |
BLOG_SERVICE_PROBING_ENABLED
If true, then after discovering what a site's blog provider is we
probe in select locations for feeds based on the provider. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AGGRESIVE_PROBING_ENABLED
public static boolean AGGRESIVE_PROBING_ENABLED
- If true, then we aggresively probe a site if it doesn't have
autodiscovery. This includes trying to determine what the blog provider
is, trying individual locations based on a blog provider, and probing
in several locations if the blog provider is unknown.
The default value for this should be false. This should only be
used on server-side aggregators that generate few requests, and
_never_ on client-side aggregators. The level of traffic for
client-side aggregators would be too great.
BLOG_SERVICE_PROBING_ENABLED
public static boolean BLOG_SERVICE_PROBING_ENABLED
- If true, then after discovering what a site's blog provider is we
probe in select locations for feeds based on the provider. This
is useful if autodiscovery is not enabled on this blog and we don't
want to do the full aggresive probing.
The default value for this should be false. This should only
be used on server-side aggregators that generate few requests,
and _never_ on client-side aggregators. The level of traffic
for client-side aggregators would be too great.
ProbeLocator
public ProbeLocator()
locate
public static final List locate(String resource,
String content,
FeedList list)
throws Exception
- Throws:
Exception
feedExists
protected static boolean feedExists(String resource,
BlogService blogService)
throws Exception
- Does an HTTP HEAD to see if the given resource exists.
- Parameters:
resource
- The full URI to the resource to check for.
- Throws:
Exception
Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.