|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.feedparser.locate.blogservice.BlogService
org.apache.commons.feedparser.locate.blogservice.Blosxom
public class Blosxom
Models the Blosxom blog service, encapsulating whether a given weblog is this type of service and where it usually keeps its feeds.
| Field Summary |
|---|
| Fields inherited from class org.apache.commons.feedparser.locate.blogservice.BlogService |
|---|
blogServices, metaTagsPattern, patternToStrip |
| Constructor Summary | |
|---|---|
Blosxom()
|
|
| Method Summary | |
|---|---|
boolean |
followRedirects()
Returns whether we should follow HTTP redirects for this blog service. |
String |
getBaseFeedPath(String resource)
This method takes a resource, such as "http://www.codinginparadise.org/myweblog.php", and gets the path necessary to build up a feed, such as "http://www.codinginparadise.org/". |
FeedReference[] |
getFeedLocations(String resource,
String content)
Returns an array of FeedReferences that contains information on the usual locations this blog service contains its feed. |
boolean |
hasValidAutoDiscovery()
Returns whether we can trust the results of this blog service's autodiscovery links. |
boolean |
isThisService(String resource,
String content)
Determines if the weblog at the given resource and with the given content is this blog service. |
| Methods inherited from class org.apache.commons.feedparser.locate.blogservice.BlogService |
|---|
containsDomain, equals, getBlogServices, hasGenerator, hashCode, initializeBlogServices, isThisService, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Blosxom()
| Method Detail |
|---|
public boolean hasValidAutoDiscovery()
hasValidAutoDiscovery in class BlogServicepublic boolean followRedirects()
followRedirects in class BlogService
public boolean isThisService(String resource,
String content)
throws FeedParserException
isThisService in class BlogServiceresource - A full URI to this resource, such as
"http://www.codinginparadise.org".content - The full HTML content at the resource's URL.
FeedParserException - Thrown if an error occurs while
determining the type of this weblog.
public FeedReference[] getFeedLocations(String resource,
String content)
throws FeedParserException
getFeedLocations in class BlogServiceresource - A URL to the given weblog that might be used to build
up where feeds are usually located.content - The full content of the resource URL, which might
be useful to determine where feeds are usually located. This can be
null.
FeedParserException - Thrown if an error occurs while trying
to determine the usual locations of feeds for this service.public String getBaseFeedPath(String resource)
getBaseFeedPath in class BlogServiceMalformedURLException - Thrown if the given resource's URL is
incorrectly formatted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||