org.apache.jetspeed.portal.portlets
Class NewRSSPortlet

java.lang.Object
  extended byorg.apache.jetspeed.portal.portlets.AbstractPortlet
      extended byorg.apache.jetspeed.portal.portlets.AbstractInstancePortlet
          extended byorg.apache.jetspeed.portal.portlets.FileWatchPortlet
              extended byorg.apache.jetspeed.portal.portlets.NewRSSPortlet
All Implemented Interfaces:
Cacheable, Portlet, PortletState, org.apache.turbine.services.cache.Refreshable, java.io.Serializable

public class NewRSSPortlet
extends FileWatchPortlet

Portlet which renders RDF Site Summary.

This portlet uses XML stylesheet for transforming the RSS content into display markup depending on the MimeType requested by the user-agent

It accepts the following parameters :

itemDisplayed
The number of items from the RSS file to display on screen. Default 15 for HTML, 5 for WML
showDescription
Should the portlet show the item descriptions. Must be true or false. Default: true for HTML, false for WML
showTitle
Should the portlet show the channel description. Must be true or false. Default: true for HTML, false for WML
stylesheet[.]
The stylesheet URL. If a mime-type is specified, the stylesheet is only used for this mime-type

Version:
$Id: NewRSSPortlet.java,v 1.23 2005/03/21 18:21:43 sgala Exp $
Author:
RaphaŽl Luta
See Also:
Serialized Form

Field Summary
static java.lang.String ERROR_NOT_VALID
           
static java.lang.String INVALID_TYPE
           
 
Fields inherited from class org.apache.jetspeed.portal.portlets.AbstractPortlet
content
 
Fields inherited from interface org.apache.jetspeed.portal.Portlet
PORTLET_MAXIMIZED, PORTLET_MINIMIZED, PORTLET_NORMAL
 
Constructor Summary
NewRSSPortlet()
           
 
Method Summary
 org.apache.ecs.ConcreteElement getContent(org.apache.turbine.util.RunData data)
          This methods outputs the content of the portlet for a given request.
 void init()
          This method loads the init parameters and parse the document tied to this portlet
 boolean supportsType(MimeType mimeType)
          This portlet supports has many types as those it has stylesheets defined for in its parameters
 
Methods inherited from class org.apache.jetspeed.portal.portlets.FileWatchPortlet
getExpire
 
Methods inherited from class org.apache.jetspeed.portal.portlets.AbstractInstancePortlet
getHandle
 
Methods inherited from class org.apache.jetspeed.portal.portlets.AbstractPortlet
allowClose, allowCustomize, allowInfo, allowMaximize, allowMinimize, allowPrintFriendly, allowView, clearContent, getAllowEdit, getAllowMaximize, getAllowView, getAttribute, getContent, getContent, getCreationTime, getDescription, getDescription, getExpirationMillis, getHandle, getID, getImage, getImage, getInstance, getName, getPortletConfig, getTitle, getTitle, isCacheable, isClosed, isMinimized, isShowTitleBar, providesCustomization, refresh, setAttribute, setCacheable, setCachedObject, setClosed, setContent, setContent, setContent, setCreationTime, setDescription, setExpirationMillis, setHandle, setID, setImage, setMinimized, setName, setPortletConfig, setTitle, setTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERROR_NOT_VALID

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

INVALID_TYPE

public static final java.lang.String INVALID_TYPE
See Also:
Constant Field Values
Constructor Detail

NewRSSPortlet

public NewRSSPortlet()
Method Detail

init

public void init()
          throws PortletException
This method loads the init parameters and parse the document tied to this portlet

Specified by:
init in interface Portlet
Overrides:
init in class AbstractPortlet
Throws:
PortletException

getContent

public org.apache.ecs.ConcreteElement getContent(org.apache.turbine.util.RunData data)
This methods outputs the content of the portlet for a given request.

Specified by:
getContent in interface Portlet
Overrides:
getContent in class AbstractPortlet
Parameters:
data - the RunData object for the request
Returns:
the content to be displayed to the user-agent

supportsType

public boolean supportsType(MimeType mimeType)
This portlet supports has many types as those it has stylesheets defined for in its parameters

Specified by:
supportsType in interface Portlet
Overrides:
supportsType in class AbstractPortlet
Parameters:
mimeType - the MIME type queried
Returns:
true if the portlet knows how to display content for mimeType
See Also:
Portlet#supportsType


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.