com.raritantechnologies.quickstart.userInterface
Class RedirectServletHandler

java.lang.Object
  extended bycom.raritantechnologies.quickstart.userInterface.RedirectServletHandler
All Implemented Interfaces:
IConfigurable, IServletHandler

public class RedirectServletHandler
extends java.lang.Object
implements IServletHandler

ServletHandler that can send a redirect from a patterned input. Can also lookup a redirect URL from request parameters using an RTI SearchSource.

XML Configuration Template:
   <ServletHandler class="com.raritantechnologies.quickstart.userInterface.RedirectServletHandler"
                      requestParams="[ set of additional request parameters, use {REQUEST:[request param]} and {SESSION:[session param] as placeholders ]"
                      redirectURL="[ static redirect URL (can also get redirect from 'redirect' request parameter) ]"
                      searchSourceName="[ (optional) name of search source used to look up the redirect URL ]"
                      resultURLField="[ name of result field that has the looked up redirect URL ]" >

   </ServletHandler>
 


Constructor Summary
RedirectServletHandler()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RedirectServletHandler

public RedirectServletHandler()
Method Detail

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