|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.quickstart.userInterface.SaveResultsHandler
Implementation of IServletHandler that implements Saved Results. Can be used to push cached results to an output processor.
web.xml configuration:
<servlet>
<servlet-name>SaveResultsServlet</servlet-name>
<servlet-class>com.raritantechnologies.quickstart.userInterface.SearchServlet
<init-param>
<param-name>ServletHandler</param-name>
<param-value>[ name of ServletHandler here ]</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>SaveResultsServlet</servlet-name>
<url-pattern>doSave</url-pattern>
</servlet-mapping>
XML Configuration Template:
<SystemObject type="ServletHandler" name="[ name of this ServletHandler - needs to match param-value in web.xml ]"
configurableClass="com.raritantechnologies.userInterface.SaveResultsHandler"
cacheResultSetName=="[ cache key for selected results ]"
cacheFieldID="[ fieldID of cached records ]"
nameRequestParam="[ name of http request parameter with user-supplied group name ]" >
<ResultFields saveName="[ name of result field that gets the user-supplied group name ]"
userID="[ name of result field that gets UserID ]"
timeStamp="[ name of result field that gets save time stamp ]" >
dateFormat="MM/dd/yy" />
<!-- If using an implementation of IResultSetProcessor for output -->
<ResultSetProcessor class="[ class of com.raritantechnologies.searchApp.IResultSetProcessor ]" >
</ResultSetProcessor>
<!-- If using an implementation of IGatewayOutputProcessor -->
<GatewayOutputProcessor class="[ class of com.raritantechnologies.searchApp.dataCollection.IGatewayOutputProcessor ]" >
</GatewayOutputProcessor>
</SystemObject>
| Constructor Summary | |
SaveResultsHandler()
|
|
| Method Summary | |
ActionForward |
handleAction(ActionMapping mapping,
ActionForm form,
DynamicHttpServletRequest request,
HttpServletResponse response)
Struts ActionHandler method |
void |
init(SearchServlet searchServlet)
|
void |
initialize(org.w3c.dom.Element elem)
Initializes the object from an XML tag or element. |
void |
service(DynamicHttpServletRequest pReq,
HttpServletResponse pRes)
Delegate the service request to the IServletHandler. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SaveResultsHandler()
| Method Detail |
public void service(DynamicHttpServletRequest pReq,
HttpServletResponse pRes)
throws ServletException,
java.io.IOException
service in interface IServletHandlera - ServletException if the IServletHandler is not defined.
ServletException
java.io.IOException
public ActionForward handleAction(ActionMapping mapping,
ActionForm form,
DynamicHttpServletRequest request,
HttpServletResponse response)
throws java.lang.Exception
handleAction in interface IActionHandlerjava.lang.Exceptionpublic void init(SearchServlet searchServlet)
init in interface IServletHandlerpublic void initialize(org.w3c.dom.Element elem)
IConfigurable
initialize in interface IConfigurable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||