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)
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 java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
debug
private Debug debug
context
javax.servlet.ServletContext context
gotoDB
private boolean gotoDB
BatchStartHandler
public BatchStartHandler()
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 MainServletcontext
- 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