org.apache.jetspeed.util.servlet
Class EcsStylesheetElement

java.lang.Object
  extended byorg.apache.ecs.GenericElement
      extended byorg.apache.ecs.ElementAttributes
          extended byorg.apache.ecs.ConcreteElement
              extended byorg.apache.jetspeed.util.servlet.EcsStylesheetElement
All Implemented Interfaces:
org.apache.ecs.Attributes, java.lang.Cloneable, org.apache.ecs.Element, org.apache.ecs.ElementRegistry, java.io.Serializable

public class EcsStylesheetElement
extends org.apache.ecs.ConcreteElement

NOTE: The use of Ecs for aggregating portlet content is deprecated! This utility class will be removed once we don't have the ecs dependency any more. EcsStylesheetElement encapsulates XML data, a stylesheet and the parameters for processing the XML data within the context of ECS markup. This is a workaround to allow invoking stylesheets from JetSpeed Portlets without buffering strings with the transformation results. Transformation is invoked when traversal of an ECS tree during writing reaches the EcsStylesheetElement.

Author:
Thomas Schaeck (schaeck@de.ibm.com)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.ecs.GenericElement
tabLevel
 
Fields inherited from interface org.apache.ecs.Attributes
NO_ATTRIBUTE_VALUE
 
Fields inherited from interface org.apache.ecs.Element
CENTER, LEFT, LOWERCASE, MIXEDCASE, RIGHT, UPPERCASE
 
Constructor Summary
EcsStylesheetElement(org.xml.sax.InputSource content, org.xml.sax.InputSource stylesheet, java.util.Map params)
          Construct an ECS element that will render a given XML dicument using a given stylesheet and parameters when one of its output methods is invoked.
 
Method Summary
 void output(java.io.OutputStream out)
          Processes the referenced XML content using the referenced XSLT stylesheet and parameters.
 void output(java.io.PrintWriter out)
          Processes the referenced XML content using the referenced XSLT stylesheet and parameters.
 
Methods inherited from class org.apache.ecs.ConcreteElement
addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, clone, elements, getElement, keys, output, registryHasElement, registryHasElement, removeElementFromRegistry, removeElementFromRegistry
 
Methods inherited from class org.apache.ecs.ElementAttributes
addAttribute, addAttribute, addAttribute, addAttribute, attributes, createStartTag, getAttribute, getAttributeEqualitySign, getAttributeFilter, getAttributeFilterState, getAttributeQuote, getAttributeQuoteChar, hasAttribute, removeAttribute, setAttributeEqualitySign, setAttributeFilter, setAttributeFilterState, setAttributeQuote, setAttributeQuoteChar, setClass, setDir, setID, setLang, setStyle, setTitle
 
Methods inherited from class org.apache.ecs.GenericElement
alterCase, createEndTag, getBeginEndModifier, getBeginEndModifierDefined, getBeginStartModifier, getBeginStartModifierDefined, getCase, getCodeSet, getElementHashEntry, getElementType, getEndEndModifier, getEndEndModifierDefined, getEndStartModifier, getEndStartModifierDefined, getEndTagChar, getFilter, getFilterState, getNeedClosingTag, getNeedLineBreak, getPrettyPrint, getStartTagChar, getTabLevel, getTagPosition, getTagText, getVersion, putTabs, putTabs, removeBeginEndModifier, removeBeginStartModifier, removeEndEndModifier, removeEndStartModifier, setBeginEndModifier, setBeginModifier, setBeginModifier, setBeginStartModifier, setCase, setCodeSet, setElementType, setEndEndModifier, setEndModifier, setEndModifier, setEndStartModifier, setEndTagChar, setFilter, setFilterState, setNeedClosingTag, setPrettyPrint, setStartTagChar, setTabLevel, setTagPosition, setTagText, toString, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EcsStylesheetElement

public EcsStylesheetElement(org.xml.sax.InputSource content,
                            org.xml.sax.InputSource stylesheet,
                            java.util.Map params)
Construct an ECS element that will render a given XML dicument using a given stylesheet and parameters when one of its output methods is invoked.

Parameters:
content - XML content to be processed
stylesheet - XSLT stylesheet to be used for processing the content
params - parameters for the stylesheet
Method Detail

output

public void output(java.io.OutputStream out)
Processes the referenced XML content using the referenced XSLT stylesheet and parameters.

Parameters:
out - The output stream to which the result shall be written.

output

public void output(java.io.PrintWriter out)
Processes the referenced XML content using the referenced XSLT stylesheet and parameters.

Parameters:
out - The print writer to be used for writing the result.


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