Dekoh platform API

dekoh.portal.syndication
Class SyndicationService.FeedType

java.lang.Object
  extended by java.lang.Enum
      extended by dekoh.portal.syndication.SyndicationService.FeedType
All Implemented Interfaces:
Serializable, Comparable
Enclosing class:
SyndicationService

public static final class SyndicationService.FeedType
extends Enum

See Also:
Serialized Form

Field Summary
static EnumSet AGGREGATOR_SUPPORTED_FEED_TYPES
           
static SyndicationService.FeedType Atom1_0
           
static SyndicationService.FeedType RSS1_0
           
static SyndicationService.FeedType RSS2_0
           
static EnumSet SUPPORTED_FEED_TYPES
           
 
Method Summary
 String getOpmlVersion()
          OPML enforces (undocumented) that the version of RSS be expressed in certain way.
 String getRomeAPIVersion()
          When asking Rome API to produce a Feed like rss_1.0 or rss_2.0 this string will be used.
 String getType()
           
 String getUrlSuffix()
           
static SyndicationService.FeedType valueOf(String name)
           
static SyndicationService.FeedType[] values()
           
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

RSS1_0

public static final SyndicationService.FeedType RSS1_0

RSS2_0

public static final SyndicationService.FeedType RSS2_0

Atom1_0

public static final SyndicationService.FeedType Atom1_0

SUPPORTED_FEED_TYPES

public static final EnumSet SUPPORTED_FEED_TYPES

AGGREGATOR_SUPPORTED_FEED_TYPES

public static final EnumSet AGGREGATOR_SUPPORTED_FEED_TYPES
Method Detail

values

public static final SyndicationService.FeedType[] values()

valueOf

public static SyndicationService.FeedType valueOf(String name)

getType

public String getType()

getOpmlVersion

public String getOpmlVersion()
OPML enforces (undocumented) that the version of RSS be expressed in certain way. This variable returns OPML compliant string for this FeedType.

Returns:
string.

getRomeAPIVersion

public String getRomeAPIVersion()
When asking Rome API to produce a Feed like rss_1.0 or rss_2.0 this string will be used.

Returns:
string

getUrlSuffix

public String getUrlSuffix()
Returns:
string that will be suffixed in making the URL to serve feed of this type. For example rss1 suffix will make up URL http://localhost/dekohportal/feeds/rss?n=comments which serves latest comments in RSS1 format.

Suffix rss is reserved to represent the latest RSS version, which currently is 2.


Dekoh platform API

© 2009 Pramati Technologies - Dekoh - Portal for Developers