com.raritantechnologies.searchApp.queryFilters
Class QueryParserServletHandler
java.lang.Object
com.raritantechnologies.searchApp.queryFilters.QueryParserServletHandler
- All Implemented Interfaces:
- IConfigurable, IServletHandler
- public class QueryParserServletHandler
- extends java.lang.Object
- implements IServletHandler
Uses an IQueryParser to re-compute the query string, then issues a servlet redirect using the
modified query string.
XML Configuration Template:
<ServletHandler class="com.raritantechnologies.searchApp.queryFilters.QueryParserServletHandler"
baseURL="[ base URL of modified request ]" >
<QueryParser class="[ class of com.raritantechnologies.searchApp.IQueryParser ]" >
</QueryParser>
</ServletHandler>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryParserServletHandler
public QueryParserServletHandler()
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