com.raritantechnologies.quickstart.taglibrary.request
Class PageContextRequestFormatter

java.lang.Object
  extended bycom.raritantechnologies.quickstart.taglibrary.request.PageContextRequestFormatter
All Implemented Interfaces:
IConfigurable, IPageContextRenderer

public class PageContextRequestFormatter
extends java.lang.Object
implements IPageContextRenderer

Enables an com.raritantechnologies.quickstart.taglibrary.IRequestFormatter to be included as a generic IPageContextRenderer. Used in HTML Templates where multiple types of renderers need to be interchangable.

XML Configuration Template:
  <PageContextRenderer class="com.raritantechnologies.quickstart.taglibrary.request.PageContextRequestFormatter" >

    <RequestFormatter class="[ class of com.raritantechnologies.quickstart.taglibrary.request.IRequestFormatter ]" >

    </RequestFormatter>

  </PageContextRenderer>

 


Constructor Summary
PageContextRequestFormatter()
           
 
Method Summary
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 java.lang.String render(RaritanPageContext pageContext)
          Returns the tag body.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageContextRequestFormatter

public PageContextRequestFormatter()
Method Detail

render

public java.lang.String render(RaritanPageContext pageContext)
Description copied from interface: IPageContextRenderer
Returns the tag body.

Specified by:
render in interface IPageContextRenderer
Parameters:
pageContext - Platform-neutral page context ( can be used in non J2EE environments such as ASP).
Returns:
The tag body text string.

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: IConfigurable
Initializes the object from an XML tag or element. This method is called by the Framework as part of the application initializtion. see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory. Configurable objects that are owned or contained by other configurable objects will be initialized in by the parent object.

Specified by:
initialize in interface IConfigurable