com.raritantechnologies.quickstart.userInterface
Class LoadSearchSourceHandler
java.lang.Object
com.raritantechnologies.quickstart.userInterface.LoadSearchSourceHandler
- All Implemented Interfaces:
- IConfigurable, IServletHandler
- public class LoadSearchSourceHandler
- extends java.lang.Object
- implements IServletHandler
Loads SearchSource dynamically using an IXMLDataSource.
XML Configuration Template:
<ServletHandler class="com.raritantechnologies.quickstart.userInterface.LoadSearchSourceHandler" >
<XMLConfigurationSource class="[ class of com.raritantechnologies.xml.dataCollection.IXMLDataSource ]" >
</XMLConfigurationSource>
</ServletHandler>
XML Format of loaded SearchSource files:
<Source sourceMapName="[ (optional) name of SourceMap ]" sourceMapType="[ type of sourceMap e.g. 'category' ] >
<SourceType sourceMapKey="[ key to use to load this source into the sourceMap ]" >
</SourceType>
<!-- One or more fields to set Input parameters on source -->
<Field name="AFieldName" value="ItsValue" />
<Field name="AnotherField" value="TheValue" />
</Source>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoadSearchSourceHandler
public LoadSearchSourceHandler()
init
public void init(SearchServlet searchServlet)
- Specified by:
init in interface IServletHandler
service
public void service(DynamicHttpServletRequest pReq,
HttpServletResponse pRes)
throws ServletException,
java.io.IOException
- Specified by:
service in interface IServletHandler
- Throws:
ServletException
java.io.IOException
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