org.apache.jetspeed.portal.portlets
Class XMLPortlet

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

public class XMLPortlet
extends AbstractPortlet

Portlet to output an XML well-formed document without any rendering. Strips all PIs and XML declaration before outputting content to allow for inclusion in a wider XML document.

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

Field Summary
 
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
XMLPortlet()
           
 
Method Summary
 org.apache.ecs.ConcreteElement getContent(java.lang.Object params, org.apache.turbine.util.RunData rundata)
          Return the PI-stripped XML document wrapped in an ECS ElementContainer.
 org.apache.ecs.ConcreteElement getContent(org.apache.turbine.util.RunData rundata)
          Return the PI-stripped XML document wrapped in an ECS ElementContainer
 
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, getExpire, getHandle, getHandle, getID, getImage, getImage, getInstance, getName, getPortletConfig, getTitle, getTitle, init, isCacheable, isClosed, isMinimized, isShowTitleBar, providesCustomization, refresh, setAttribute, setCacheable, setCachedObject, setClosed, setContent, setContent, setContent, setCreationTime, setDescription, setExpirationMillis, setHandle, setID, setImage, setMinimized, setName, setPortletConfig, setTitle, setTitle, supportsType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLPortlet

public XMLPortlet()
Method Detail

getContent

public org.apache.ecs.ConcreteElement getContent(org.apache.turbine.util.RunData rundata)
Return the PI-stripped XML document wrapped in an ECS ElementContainer

Specified by:
getContent in interface Portlet
Overrides:
getContent in class AbstractPortlet
Parameters:
rundata - The RunData object for the current request

getContent

public org.apache.ecs.ConcreteElement getContent(java.lang.Object params,
                                                 org.apache.turbine.util.RunData rundata)
Return the PI-stripped XML document wrapped in an ECS ElementContainer. Currently same as getContent()



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