com.liferay.util
Class RSSUtil

java.lang.Object
  extended by com.liferay.util.RSSUtil

public class RSSUtil
extends java.lang.Object

Author:
Brian Wing Shun Chan, Eduardo Garcia

Field Summary
static java.lang.String ATOM
           
static java.lang.String DISPLAY_STYLE_ABSTRACT
           
static java.lang.String DISPLAY_STYLE_DEFAULT
           
static java.lang.String DISPLAY_STYLE_FULL_CONTENT
           
static java.lang.String DISPLAY_STYLE_TITLE
           
static java.lang.String[] DISPLAY_STYLES
           
static java.lang.String ENTRY_TYPE_DEFAULT
           
static java.lang.String FEED_TYPE_DEFAULT
           
static java.lang.String[] FEED_TYPES
           
static java.lang.String FORMAT_DEFAULT
           
static java.lang.String RSS
           
static java.lang.String TYPE_DEFAULT
          Deprecated. As of 6.2.0, replaced by FORMAT_DEFAULT
static double VERSION_DEFAULT
           
 
Constructor Summary
RSSUtil()
           
 
Method Summary
static java.lang.String export(com.sun.syndication.feed.synd.SyndFeed feed)
           
static java.lang.String getFeedType(java.lang.String type, double version)
           
static java.lang.String getFeedTypeFormat(java.lang.String feedType)
           
static java.lang.String getFeedTypeName(java.lang.String feedType)
           
static double getFeedTypeVersion(java.lang.String feedType)
           
static java.lang.String getFormatType(java.lang.String format)
           
static double getFormatVersion(java.lang.String format)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATOM

public static final java.lang.String ATOM
See Also:
Constant Field Values

DISPLAY_STYLE_ABSTRACT

public static final java.lang.String DISPLAY_STYLE_ABSTRACT
See Also:
Constant Field Values

DISPLAY_STYLE_DEFAULT

public static final java.lang.String DISPLAY_STYLE_DEFAULT

DISPLAY_STYLE_FULL_CONTENT

public static final java.lang.String DISPLAY_STYLE_FULL_CONTENT
See Also:
Constant Field Values

DISPLAY_STYLE_TITLE

public static final java.lang.String DISPLAY_STYLE_TITLE
See Also:
Constant Field Values

DISPLAY_STYLES

public static final java.lang.String[] DISPLAY_STYLES

ENTRY_TYPE_DEFAULT

public static final java.lang.String ENTRY_TYPE_DEFAULT
See Also:
Constant Field Values

FEED_TYPE_DEFAULT

public static final java.lang.String FEED_TYPE_DEFAULT

FEED_TYPES

public static final java.lang.String[] FEED_TYPES

FORMAT_DEFAULT

public static final java.lang.String FORMAT_DEFAULT

RSS

public static final java.lang.String RSS
See Also:
Constant Field Values

TYPE_DEFAULT

public static final java.lang.String TYPE_DEFAULT
Deprecated. As of 6.2.0, replaced by FORMAT_DEFAULT

VERSION_DEFAULT

public static final double VERSION_DEFAULT
Constructor Detail

RSSUtil

public RSSUtil()
Method Detail

export

public static java.lang.String export(com.sun.syndication.feed.synd.SyndFeed feed)
                               throws com.sun.syndication.io.FeedException
Throws:
com.sun.syndication.io.FeedException

getFeedType

public static java.lang.String getFeedType(java.lang.String type,
                                           double version)

getFeedTypeFormat

public static java.lang.String getFeedTypeFormat(java.lang.String feedType)

getFeedTypeName

public static java.lang.String getFeedTypeName(java.lang.String feedType)

getFeedTypeVersion

public static double getFeedTypeVersion(java.lang.String feedType)

getFormatType

public static java.lang.String getFormatType(java.lang.String format)

getFormatVersion

public static double getFormatVersion(java.lang.String format)