com.raritantechnologies.quickstart.taglibrary.request
Class RequestQueryMapper
java.lang.Object
com.raritantechnologies.quickstart.taglibrary.request.RequestQueryMapper
- All Implemented Interfaces:
- IConfigurable, IRequestFormatter
- public class RequestQueryMapper
- extends java.lang.Object
- implements IConfigurable, IRequestFormatter
Converts an HTTP request to query string. First converts the request to an RTI
OrderedMap, then
Uses a IQueryFormatter to render
the OrderedMap to a query string.
XML Configuration Template:
<SystemObject type="RequestFormatter"
configurableClass="com.raritantechnologies.quickstart.taglibrary.request.RequestQueryMapper" >
<!-- RequestQueryMap maps HTTP request to a Query Map (OrderedMap) -->
<RequestQueryMap>
<Param reqParam="[requestID 1]" queryID="queryID 1" />
<Param reqParam="[requestID 2]" queryID="queryID 2" />
</RequestQueryMap>
<!-- QueryFormatter formats the Query Map into a query string -->
<QueryFormatter formatterClass="[some com.raritantechnologies.searchApp.query.IQueryFormatter ]" >
<!-- QueryFormatter config params here . . . -->
</QueryFormatter>
</SystemObject>
Developed by
Raritan Technologies Inc..
- Author:
- Ted Sullivan
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestQueryMapper
public RequestQueryMapper()
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
createQuery
public OrderedMap createQuery(RaritanPageContext pageContext)
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
setQueryFormatter
public void setQueryFormatter(IQueryFormatter queryFormatter)
getQueryFormatter
public IQueryFormatter getQueryFormatter()