com.instantbank.lettertemplate.control.web.handlers
Class TemplatesFlowHandler

java.lang.Object
  |
  +--com.instantbank.lettertemplate.control.web.handlers.TemplatesFlowHandler
All Implemented Interfaces:
FlowHandler

public class TemplatesFlowHandler
extends java.lang.Object
implements FlowHandler

Letter Templates usecase: flow handler for deciding output screen after processing an action

Author:
Instant-bank (Jorge Cardenas)

Field Summary
private  Debug debug
           
 
Constructor Summary
TemplatesFlowHandler()
           
 
Method Summary
 void doEnd(javax.servlet.http.HttpServletRequest request)
          optional execution after processFlow method
 void doStart(javax.servlet.http.HttpServletRequest request)
          optional execution before processFlow method
 java.lang.String processFlow(javax.servlet.http.HttpServletRequest request, java.lang.Object answer, javax.servlet.ServletContext context)
          principal method for deciding output screen after processing an action
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

debug

private Debug debug
Constructor Detail

TemplatesFlowHandler

public TemplatesFlowHandler()
Method Detail

doStart

public void doStart(javax.servlet.http.HttpServletRequest request)
optional execution before processFlow method
Specified by:
doStart in interface FlowHandler
Parameters:
request - HTTP request

processFlow

public java.lang.String processFlow(javax.servlet.http.HttpServletRequest request,
                                    java.lang.Object answer,
                                    javax.servlet.ServletContext context)
                             throws LetterTemplateEventException
principal method for deciding output screen after processing an action
Specified by:
processFlow in interface FlowHandler
Parameters:
request - of MainServlet
answer - of the action
context - web context
Returns:
String with the number of the output screen
Throws:
LetterTemplateEventException - Description of the Exception

doEnd

public void doEnd(javax.servlet.http.HttpServletRequest request)
optional execution after processFlow method
Specified by:
doEnd in interface FlowHandler
Parameters:
request - HTTP request