com.raritantechnologies.quickstart.taglibrary.request
Class StaticRequestFormatter

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

public class StaticRequestFormatter
extends java.lang.Object
implements IRequestFormatter

Uses static string to format HTTP request.

XML Configuration Template:
   <RequestFormatter class="com.raritantechnologies.quickstart.taglibrary.request.StaticRequestFormatter"
                        requestString="[the request string]"
                        activateParams="[ (optional) list of parameters that will activate the formatter ]" >

      <!-- Alternatively: request string can be specified in the tag body: -->
      <![CDATA[
        <a href="http://some.url.com/somepage?some+parameters" </a>
      ]]>
   </RequestFormatter>
 

The tag body contains the html for the request.


Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Constructor Summary
StaticRequestFormatter()
           
 
Method Summary
 java.lang.String formatSearchRequest(RaritanPageContext pageContext)
          Reformat the http request as a String.
 java.lang.String getConfigurationXML()
           
 java.lang.String getFormattedRequest()
           
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 void setFormattedRequest(java.lang.String formattedRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticRequestFormatter

public StaticRequestFormatter()
Method Detail

formatSearchRequest

public java.lang.String formatSearchRequest(RaritanPageContext pageContext)
Description copied from interface: IRequestFormatter
Reformat the http request as a String.

Specified by:
formatSearchRequest in interface IRequestFormatter

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 IRequestFormatter

setFormattedRequest

public void setFormattedRequest(java.lang.String formattedRequest)

getFormattedRequest

public java.lang.String getFormattedRequest()

getConfigurationXML

public java.lang.String getConfigurationXML()