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

java.lang.Object
  |
  +--com.instantbank.lettertemplate.control.web.handlers.RequestHandlerSupport
        |
        +--com.instantbank.lettertemplate.control.web.handlers.BatchStartHandler
All Implemented Interfaces:
RequestHandler

public class BatchStartHandler
extends RequestHandlerSupport

Letter Batch Start usecase: handler of user requests in the Application layer

Author:
Instant-bank (Jorge Cardenas)

Field Summary
(package private)  javax.servlet.ServletContext context
           
private  Debug debug
           
private  boolean gotoDB
           
 
Constructor Summary
BatchStartHandler()
           
 
Method Summary
private  LetterTemplateEvent createListBatchStartEvent(javax.servlet.http.HttpServletRequest request)
          method for instantiating a BatchStartEvent demanding a service of getting the letter batch start
private  void createUpdateBatchStartEvent(javax.servlet.http.HttpServletRequest request)
          method for instantiating a BatchStartEvent demanding a service of updating letter batch
 LetterTemplateEvent processRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext context)
          principal method that process a user request instantiating a BatchStartEvent with the user request data
 
Methods inherited from class com.instantbank.lettertemplate.control.web.handlers.RequestHandlerSupport
doEnd, doStart
 
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

context

javax.servlet.ServletContext context

gotoDB

private boolean gotoDB
Constructor Detail

BatchStartHandler

public BatchStartHandler()
Method Detail

processRequest

public LetterTemplateEvent processRequest(javax.servlet.http.HttpServletRequest request,
                                          javax.servlet.ServletContext context)
                                   throws LetterTemplateEventException
principal method that process a user request instantiating a BatchStartEvent with the user request data
Parameters:
request - of MainServlet
context - of MainServlet
Returns:
BatchStartEvent with the user request data
Throws:
LetterTemplateEventException -  

createListBatchStartEvent

private LetterTemplateEvent createListBatchStartEvent(javax.servlet.http.HttpServletRequest request)
                                               throws LetterTemplateEventException
method for instantiating a BatchStartEvent demanding a service of getting the letter batch start
Parameters:
request - of MainServlet
Returns:
BatchStartEvent with the user request data
Throws:
LetterTemplateEventException - Description of the Exception

createUpdateBatchStartEvent

private void createUpdateBatchStartEvent(javax.servlet.http.HttpServletRequest request)
method for instantiating a BatchStartEvent demanding a service of updating letter batch
Parameters:
request - of MainServlet