Anyframe Web

anyframe.web.springmvc.controller.ria.mip
Class AnyframeMiPDispatchController

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.web.context.support.WebApplicationObjectSupport
          extended by org.springframework.web.servlet.support.WebContentGenerator
              extended by org.springframework.web.servlet.mvc.AbstractController
                  extended by org.springframework.web.servlet.mvc.BaseCommandController
                      extended by org.springframework.web.servlet.mvc.AbstractFormController
                          extended by org.springframework.web.servlet.mvc.SimpleFormController
                              extended by anyframe.web.springmvc.controller.AnyframeFormController
                                  extended by anyframe.web.springmvc.controller.ria.mip.AnyframeMiPController
                                      extended by anyframe.web.springmvc.controller.ria.mip.AnyframeMiPDispatchController
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware, org.springframework.context.MessageSourceAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.mvc.Controller

public class AnyframeMiPDispatchController
extends AnyframeMiPController


Field Summary
protected  java.lang.Class clazz
          The Class instance of this AnyframeMiPDispatchConroller class.
protected  java.util.HashMap methods
          The set of Method objects we have introspected for this class, keyed by method name.
protected  java.lang.Class[] types
          The set of Method objects we have introspected for this class, keyed by method name.
 
Fields inherited from class anyframe.web.springmvc.controller.AnyframeFormController
LAST_MODIFIED_METHOD_SUFFIX, PAGE_NOT_FOUND_LOG_CATEGORY, pageNotFoundLogger
 
Fields inherited from class org.springframework.web.servlet.mvc.BaseCommandController
DEFAULT_COMMAND_NAME
 
Fields inherited from class org.springframework.web.servlet.support.WebContentGenerator
METHOD_GET, METHOD_HEAD, METHOD_POST
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Constructor Summary
AnyframeMiPDispatchController()
           
 
Method Summary
protected  void dispatchMethod(com.tobesoft.platform.PlatformRequest request, java.lang.String name, com.tobesoft.platform.data.VariableList inVl, com.tobesoft.platform.data.DatasetList inDl, com.tobesoft.platform.data.VariableList outVl, com.tobesoft.platform.data.DatasetList outDl)
          Returns the method name, given a parameter's value.
protected  java.lang.reflect.Method getMethod(java.lang.String name)
          Introspect the current class to identify a method of the specified name that accepts the same parameter types as the execute method does.
protected  java.lang.String getMethodName(com.tobesoft.platform.data.VariableList in_vl, java.lang.String parameter)
           
 void operate(com.tobesoft.platform.PlatformRequest platformRequest, com.tobesoft.platform.data.VariableList inVl, com.tobesoft.platform.data.DatasetList inDl, com.tobesoft.platform.data.VariableList outVl, com.tobesoft.platform.data.DatasetList outDl)
          This is a method for executing the dispatch method.
 
Methods inherited from class anyframe.web.springmvc.controller.ria.mip.AnyframeMiPController
convertDatasetToListMap, convertDatasetToListMap, convertVoListToDataset, convertVoToDataset, process, setResultMessage
 
Methods inherited from class anyframe.web.springmvc.controller.AnyframeFormController
bind, getExceptionHandler, getLastModified, getLogger, getMethodNameResolver, getSuccess_add, getSuccess_addView, getSuccess_delete, getSuccess_get, getSuccess_list, getSuccess_update, handleInvalidSubmit, handleNoSuchRequestHandlingMethod, handleRequestInternal, initBinder, invokeNamedMethod, isShowNewForm, newCommandObject, onSubmit, postProcess, preProcess, processCheckedException, processFinally, processUnCheckedException, setDelegate, setMessageSource, setMethodNameResolver, setShowNewForm, setSuccess_add, setSuccess_addView, setSuccess_delete, setSuccess_get, setSuccess_list, setSuccess_update
 
Methods inherited from class org.springframework.web.servlet.mvc.SimpleFormController
doSubmitAction, getFormView, getSuccessView, isFormChangeRequest, isFormChangeRequest, onFormChange, onFormChange, onSubmit, onSubmit, processFormSubmission, referenceData, referenceData, setFormView, setSuccessView, showForm, showForm, suppressValidation
 
Methods inherited from class org.springframework.web.servlet.mvc.AbstractFormController
currentFormObject, formBackingObject, getCommand, getErrorsForNewForm, getFormSessionAttributeName, getFormSessionAttributeName, isBindOnNewForm, isFormSubmission, isSessionForm, onBindOnNewForm, onBindOnNewForm, setBindOnNewForm, setSessionForm, showForm, showForm, showNewForm
 
Methods inherited from class org.springframework.web.servlet.mvc.BaseCommandController
bindAndValidate, checkCommand, createBinder, createCommand, getBindingErrorProcessor, getCommandClass, getCommandName, getMessageCodesResolver, getPropertyEditorRegistrars, getValidator, getValidators, getWebBindingInitializer, initApplicationContext, isValidateOnBinding, onBind, onBind, onBindAndValidate, prepareBinder, setBindingErrorProcessor, setCommandClass, setCommandName, setMessageCodesResolver, setPropertyEditorRegistrar, setPropertyEditorRegistrars, setValidateOnBinding, setValidator, setValidators, setWebBindingInitializer, suppressBinding, suppressValidation, suppressValidation, useDirectFieldAccess
 
Methods inherited from class org.springframework.web.servlet.mvc.AbstractController
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
 
Methods inherited from class org.springframework.web.servlet.support.WebContentGenerator
applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader
 
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
 
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, requiredContextClass, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

methods

protected java.util.HashMap methods
The set of Method objects we have introspected for this class, keyed by method name. This collection is populated as different methods are called, so that introspection needs to occur only once per method name.


clazz

protected java.lang.Class clazz
The Class instance of this AnyframeMiPDispatchConroller class.


types

protected java.lang.Class[] types
The set of Method objects we have introspected for this class, keyed by method name. This collection is populated as different methods are called, so that introspection needs to occur only once per method name.

Constructor Detail

AnyframeMiPDispatchController

public AnyframeMiPDispatchController()
Method Detail

operate

public void operate(com.tobesoft.platform.PlatformRequest platformRequest,
                    com.tobesoft.platform.data.VariableList inVl,
                    com.tobesoft.platform.data.DatasetList inDl,
                    com.tobesoft.platform.data.VariableList outVl,
                    com.tobesoft.platform.data.DatasetList outDl)
             throws java.lang.Exception
This is a method for executing the dispatch method. We execute the appropriate method by obtaining the value of the method attribute of VariableList. If the mthod's value is null, operator or process, then an exception occurs, and method's value exists, however, if the in the class, the method is not implemented, the exception occurs.

Specified by:
operate in class AnyframeMiPController
Parameters:
request - The Platform request we are processing
inVl - a input VariableList
inDl - a input Dataset
outVl - a output VariableList
outDl - a output Dataset
Throws:
java.lang.Exception - if an exception occurs

getMethodName

protected java.lang.String getMethodName(com.tobesoft.platform.data.VariableList in_vl,
                                         java.lang.String parameter)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

dispatchMethod

protected void dispatchMethod(com.tobesoft.platform.PlatformRequest request,
                              java.lang.String name,
                              com.tobesoft.platform.data.VariableList inVl,
                              com.tobesoft.platform.data.DatasetList inDl,
                              com.tobesoft.platform.data.VariableList outVl,
                              com.tobesoft.platform.data.DatasetList outDl)
                       throws java.lang.Exception
Returns the method name, given a parameter's value.

Parameters:
mapping - The ActionMapping used to select this instance
in_vl -
parameter -
Throws:
java.lang.Exception

getMethod

protected java.lang.reflect.Method getMethod(java.lang.String name)
                                      throws java.lang.Exception
Introspect the current class to identify a method of the specified name that accepts the same parameter types as the execute method does.

Parameters:
name - Name of the method to be introspected
Throws:
java.lang.Exception

Anyframe Web

Copyright © 2008-2009 Samsung SDS. All Rights Reserved.