|
||||||||||
| 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.Xanga
public class Xanga
Models the Xanga 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 | |
|---|---|
Xanga()
|
|
| Method Summary | |
|---|---|
boolean |
followRedirects()
Returns whether we should follow HTTP redirects for this blog service. |
FeedReference[] |
getFeedLocations(String resource,
String content)
Returns an array of FeedReferences that contains information on the usual locations this blog service contains its feed. |
protected String |
getXangaUser(String resource)
Xanga's feed locations are dependent on the 'user' attribute in a Xanga URI. |
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, getBaseFeedPath, getBlogServices, hasGenerator, hashCode, initializeBlogServices, isThisService, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Xanga()
| 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.protected String getXangaUser(String resource)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||