org.apache.jetspeed.util.servlet
Class EcsServletElement

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

public class EcsServletElement
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. EcsServletElement encapsulates a servlet/JSP within the context of ECS HTML-generation. This is a workaround to allow invoking servlets from JetSpeed Portlets. The servlet will be invoked when traversal of an ECS tree during writing reaches the EcsServlet element.

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
EcsServletElement(org.apache.turbine.util.RunData rundata, java.lang.String urlString)
          Construct an ECS element from a given rundata object and URL.
 
Method Summary
 void output(java.io.OutputStream out)
          Builds the content of this element and output it in the passed OutputStream
 void output(java.io.PrintWriter out)
          Builds the content of this element and output it in the passed PrintWriter
 
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

EcsServletElement

public EcsServletElement(org.apache.turbine.util.RunData rundata,
                         java.lang.String urlString)
Construct an ECS element from a given rundata object and URL.

Parameters:
rundata - Rundata object that holds the HttpServletRequest/Response objects to be used for servlet invocation.
Method Detail

output

public void output(java.io.OutputStream out)
Builds the content of this element and output it in the passed OutputStream

Parameters:
out - the OutputStream to use for generating content

output

public void output(java.io.PrintWriter out)
Builds the content of this element and output it in the passed PrintWriter

Parameters:
out - the PrintWriter to use for generating content


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