Anyframe Web

anyframe.web.struts.action.ria.mip
Class AnyframeMiPDispatchAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by org.springframework.web.struts.ActionSupport
          extended by anyframe.web.struts.action.ria.mip.AnyframeMiPAction
              extended by anyframe.web.struts.action.ria.mip.AnyframeMiPDispatchAction

public class AnyframeMiPDispatchAction
extends AnyframeMiPAction

Abstract Dispatch Action Class which provide token, exception, error logging, pre/post execution features

Author:
Byunghun Woo

Field Summary
protected  java.lang.Class clazz
          The Class instance of this DispatchAction class.
 org.apache.commons.logging.Log log
           
protected static org.apache.struts.util.MessageResources messages
          The message resources for this package.
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.struts.action.ria.mip.AnyframeMiPAction
default_charset, default_encode_method
 
Fields inherited from class org.apache.struts.action.Action
servlet
 
Constructor Summary
AnyframeMiPDispatchAction()
           
 
Method Summary
protected  void dispatchMethod(org.apache.struts.action.ActionMapping mapping, 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)
          Dispatch to the specified method.
 org.apache.commons.logging.Log getLogger()
          get Logger
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(org.apache.struts.action.ActionMapping mapping, com.tobesoft.platform.data.VariableList in_vl, java.lang.String parameter)
          Returns the method name, given a parameter's value.
protected  void onInit()
          get Logger
 org.apache.struts.action.ActionForward process(org.apache.struts.action.ActionMapping arg0, org.apache.struts.action.ActionForm arg1, javax.servlet.http.HttpServletRequest arg2, javax.servlet.http.HttpServletResponse arg3)
           
 void process(org.apache.struts.action.ActionMapping mapping, com.tobesoft.platform.PlatformRequest request, com.tobesoft.platform.data.VariableList inVl, com.tobesoft.platform.data.DatasetList inDl, com.tobesoft.platform.data.VariableList outVl, com.tobesoft.platform.data.DatasetList outDl)
          Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it).
protected  org.apache.struts.action.ActionForward unspecified(org.apache.struts.action.ActionMapping mapping, com.tobesoft.platform.PlatformRequest request)
          Method which is dispatched to when there is no value for specified request parameter included in the request.
 
Methods inherited from class anyframe.web.struts.action.ria.mip.AnyframeMiPAction
convertDatasetToListMap, convertDatasetToListMap, convertVoListToDataset, convertVoToDataset, execute, getService, postProcess, preProcess, processCheckedException, processFinally, processUnCheckedException, setResultMessage
 
Methods inherited from class org.springframework.web.struts.ActionSupport
getMessageSourceAccessor, getServletContext, getTempDir, getWebApplicationContext, initWebApplicationContext, onDestroy, setServlet
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clazz

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


messages

protected static org.apache.struts.util.MessageResources messages
The message resources for this package.


log

public org.apache.commons.logging.Log log

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.


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

AnyframeMiPDispatchAction

public AnyframeMiPDispatchAction()
Method Detail

onInit

protected void onInit()
get Logger

Overrides:
onInit in class AnyframeMiPAction

process

public void process(org.apache.struts.action.ActionMapping mapping,
                    com.tobesoft.platform.PlatformRequest request,
                    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
Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it). Return an ActionForward instance describing where and how control should be forwarded, or null if the response has already been completed.

Specified by:
process in class AnyframeMiPAction
Parameters:
mapping - The ActionMapping used to select this instance
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(org.apache.struts.action.ActionMapping mapping,
                                         com.tobesoft.platform.data.VariableList in_vl,
                                         java.lang.String parameter)
                                  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 -
Returns:
Throws:
java.lang.Exception

dispatchMethod

protected void dispatchMethod(org.apache.struts.action.ActionMapping mapping,
                              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
Dispatch to the specified method.

Throws:
java.lang.Exception
Since:
Struts 1.1

unspecified

protected org.apache.struts.action.ActionForward unspecified(org.apache.struts.action.ActionMapping mapping,
                                                             com.tobesoft.platform.PlatformRequest request)
                                                      throws java.lang.Exception
Method which is dispatched to when there is no value for specified request parameter included in the request. Subclasses of DispatchAction should override this method if they wish to provide default behavior different than throwing a ServletException.

Throws:
java.lang.Exception

getMethod

protected java.lang.reflect.Method getMethod(java.lang.String name)
                                      throws java.lang.NoSuchMethodException
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.NoSuchMethodException - if no such method can be found

getLogger

public org.apache.commons.logging.Log getLogger()
get Logger

Specified by:
getLogger in class AnyframeMiPAction

process

public org.apache.struts.action.ActionForward process(org.apache.struts.action.ActionMapping arg0,
                                                      org.apache.struts.action.ActionForm arg1,
                                                      javax.servlet.http.HttpServletRequest arg2,
                                                      javax.servlet.http.HttpServletResponse arg3)
                                               throws java.lang.Exception
Throws:
java.lang.Exception

Anyframe Web

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