com.instantbank.servicing.control.web.handlers
Class SetParameterXValueHandler
java.lang.Object
|
+--com.instantbank.servicing.control.web.handlers.RequestHandlerSupport
|
+--com.instantbank.servicing.control.web.handlers.SetParameterXValueHandler
- All Implemented Interfaces:
- RequestHandler
- public class SetParameterXValueHandler
- extends RequestHandlerSupport
Set Parameter Value 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
|
Method Summary |
private void |
createListSetParametersValues(javax.servlet.http.HttpServletRequest request)
method for the list of parameters. |
private ServicingEvent |
createListSetParameterValueEvent(javax.servlet.http.HttpServletRequest request)
method for instantiating a SetParameterXValueEvent demanding a service of
getting the parameter values |
private ServicingEvent |
createUpdateSetParameterValueEvent(javax.servlet.http.HttpServletRequest request)
method for instantiating a SerParameterXValueEvent demanding a service of
updating parameter restrictions |
private ServicingEvent |
createVerifySetParameterValueEvent(javax.servlet.http.HttpServletRequest request)
method for instantiating a SerParameterXValueEvent demanding a service of
verify parameter restrictions |
private java.util.Hashtable |
initValuesTable(java.util.ArrayList point1,
java.util.ArrayList point2)
auxiliary method for build a HashTable with default values "undefined" |
java.lang.String |
orderString(java.lang.String value)
auxiliary method for order strings separated with ','. |
private java.util.Hashtable |
orderStringInHashTable(java.util.Hashtable parmTable)
auxiliary method for order values (String) in a Hashtable. |
ServicingEvent |
processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext context)
principal method that process a user request instantiating a SetParameterXValueEvent
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
SetParameterXValueHandler
public SetParameterXValueHandler()
processRequest
public ServicingEvent processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext context)
throws ServicingEventException
- principal method that process a user request instantiating a SetParameterXValueEvent
with the user request data
- Parameters:
request
- of MainServletcontext
- of MainServlet- Returns:
- SetParameterXValueEvent with the user request data
- Throws:
ServicingEventException
-
createListSetParametersValues
private void createListSetParametersValues(javax.servlet.http.HttpServletRequest request)
- method for the list of parameters.
- Parameters:
request
- of MainServlet
createListSetParameterValueEvent
private ServicingEvent createListSetParameterValueEvent(javax.servlet.http.HttpServletRequest request)
throws ServicingEventException
- method for instantiating a SetParameterXValueEvent demanding a service of
getting the parameter values
- Parameters:
request
- of MainServlet- Returns:
- SetParameterXValueEvent with the user request data
- Throws:
ServicingEventException
-
createUpdateSetParameterValueEvent
private ServicingEvent createUpdateSetParameterValueEvent(javax.servlet.http.HttpServletRequest request)
throws ServicingEventException
- method for instantiating a SerParameterXValueEvent demanding a service of
updating parameter restrictions
- Parameters:
request
- of MainServlet- Returns:
- SerParameterXValueEvent with the user request data
- Throws:
ServicingEventException
-
createVerifySetParameterValueEvent
private ServicingEvent createVerifySetParameterValueEvent(javax.servlet.http.HttpServletRequest request)
throws ServicingEventException
- method for instantiating a SerParameterXValueEvent demanding a service of
verify parameter restrictions
- Parameters:
request
- of MainServlet- Returns:
- SerParameterXValueEvent with the user request data
- Throws:
ServicingEventException
-
initValuesTable
private java.util.Hashtable initValuesTable(java.util.ArrayList point1,
java.util.ArrayList point2)
- auxiliary method for build a HashTable with default values "undefined"
- Parameters:
point1
- Description of the Parameterpoint2
- Description of the Parameter- Returns:
- Hashtable initialized
orderStringInHashTable
private java.util.Hashtable orderStringInHashTable(java.util.Hashtable parmTable)
- auxiliary method for order values (String) in a Hashtable.
- Parameters:
parmTable
- table initialized with values of the form.- Returns:
- Hashtable ordered.
orderString
public java.lang.String orderString(java.lang.String value)
- auxiliary method for order strings separated with ','.
- Parameters:
value
- String obtained of a Hashtable.- Returns:
- result String ordered.