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

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

public class ParmLevel2ValuesHandler
extends RequestHandlerSupport

Parameter Level2 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
ParmLevel2ValuesHandler()
           
 
Method Summary
private  ServicingEvent createListParmLevel2ValuesEvent(javax.servlet.http.HttpServletRequest request)
          method for instantiating a ParmLevel2ValuesEvent demanding a service of getting the parameter Level2 values
private  ServicingEvent createUpdateParmLevel2ValuesEvent(javax.servlet.http.HttpServletRequest request)
          method for instantiating a ParmLevel2ValuesEvent demanding a service of updating parameter Level2 values
private  java.util.ArrayList parseXMLParmLevel2Values(java.lang.String xmlParmLevel2Values)
          auxiliary method for parsing a XML string containing items to update values of parameter of Level 2
 ServicingEvent processRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext context)
          principal method that process a user request instantiating a ParmLevel2ValuesEvent 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

ParmLevel2ValuesHandler

public ParmLevel2ValuesHandler()
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 ParmLevel2ValuesEvent with the user request data
Parameters:
request - of MainServlet
context - of MainServlet
Returns:
ParmLevesNameEvent with the user request data
Throws:
ServicingEventException -  

createListParmLevel2ValuesEvent

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

createUpdateParmLevel2ValuesEvent

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

parseXMLParmLevel2Values

private java.util.ArrayList parseXMLParmLevel2Values(java.lang.String xmlParmLevel2Values)
                                              throws java.lang.Exception
auxiliary method for parsing a XML string containing items to update values of parameter of Level 2
Parameters:
xmlParmLevel2Values - 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