1    package com.instantbank.servicing.control.web.handlers;
2    
3    import javax.servlet.http.HttpServletRequest;
4    import javax.servlet.ServletContext;
5    import com.instantbank.servicing.control.ServicingEventException;
6    
7    /**
8     *  This class is the base interface to flow handlers on the web tier.
9     *
10    * @author Instant-bank (Consuelo Franky)
11    * @created September 2002
12    */
13   public interface FlowHandler {
14   
15     /**
16      *  optional action before processFlow()
17      *
18      * @param request HTTP request
19      */
20     public void doStart(HttpServletRequest request);
21   
22   
23     /**
24      *  Description of the Method
25      *
26      * @param request HTTP request
27      * @param answer answer to event
28      * @param context web context
29      * @return code of output screen
30      * @exception ServicingEventException
31      */
32     public String processFlow
33       (HttpServletRequest request, Object answer, ServletContext context)
34        throws ServicingEventException;
35   
36   
37     /**
38      *  optional action after processFlow
39      *
40      * @param request HTTP request
41      */
42     public void doEnd(HttpServletRequest request);
43   
44   }
45   
46