com.instantbank.servicing.control.web.handlers
Class ParmLevel1ValuesHandler

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

public class ParmLevel1ValuesHandler
extends RequestHandlerSupport

Parameter Level1 Values 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
           
 
Constructor Summary
ParmLevel1ValuesHandler()
           
 
Method Summary
private  ServicingEvent createListParmLevel1ValuesEvent(javax.servlet.http.HttpServletRequest request)
          method for instantiating a ParmLevel1ValuesEvent demanding a service of getting the parameter level1 values
private  ServicingEvent createUpdateParmLevel1ValuesEvent(javax.servlet.http.HttpServletRequest request)
          method for instantiating a ParmLevel1ValuesEvent demanding a service of updating parameter level1 values
private  java.util.ArrayList parseXMLParmLevel1Values(java.lang.String xmlParmLevel1Values)
          auxiliary method for parsing a XML string containing items to update values of parameter of Level 1
 ServicingEvent processRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext context)
          principal method that process a user request instantiating a ParmLevel1ValuesEvent with the user request data
 
Methods inherited from class com.instantbank.servicing.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
Constructor Detail

ParmLevel1ValuesHandler

public ParmLevel1ValuesHandler()
Method Detail

processRequest

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

createListParmLevel1ValuesEvent

private ServicingEvent createListParmLevel1ValuesEvent(javax.servlet.http.HttpServletRequest request)
                                                throws ServicingEventException
method for instantiating a ParmLevel1ValuesEvent demanding a service of getting the parameter level1 values
Parameters:
request - of MainServlet
Returns:
ParmLevel1ValuesEvent with the user request data
Throws:
ServicingEventException -  

createUpdateParmLevel1ValuesEvent

private ServicingEvent createUpdateParmLevel1ValuesEvent(javax.servlet.http.HttpServletRequest request)
                                                  throws ServicingEventException
method for instantiating a ParmLevel1ValuesEvent demanding a service of updating parameter level1 values
Parameters:
request - of MainServlet
Returns:
ParmLevelsNameEvent with the user request data
Throws:
ServicingEventException -  

parseXMLParmLevel1Values

private java.util.ArrayList parseXMLParmLevel1Values(java.lang.String xmlParmLevel1Values)
                                              throws java.lang.Exception
auxiliary method for parsing a XML string containing items to update values of parameter of Level 1
Parameters:
xmlParmLevel1Values - Description of the Parameter
Returns:
a ArrayList with 3 elements of type String[] representing the attributes of items: code, name and status
Throws:
java.lang.Exception - Description of the Exception