org.soybeanMilk.web
类 WebExecutor

java.lang.Object
  继承者 org.soybeanMilk.web.WebExecutor
所有已实现的接口:
Executor

public class WebExecutor
extends java.lang.Object
implements Executor

WEB执行器,它将根据WEB请求执行对应的可执行对象

作者:
earthAngry@gmail.com

构造方法摘要
WebExecutor(WebConfiguration configuration)
           
 
方法摘要
 void execute(java.lang.String exeName, ObjectSource objSource)
          执行
 void execute(WebObjectSource objSource)
          执行,它根据请求查找可执行对象并执行对应的动作;如果配置了异常处理器,它还会处理可能出现的异常
protected  Executable findRequestExecutable(WebObjectSource objSource)
          查找处理请求的可执行对象execute(WebObjectSource)使用这个方法来确定哪个可执行对象来处理该请求
 Configuration getConfiguration()
          获取执行器使用的配置对象
protected  WebAction.Target getTarget(Executable exe)
          返回可执行对象的目标,如果没有,则可以返回null(比如调用类并没有定义目标属性)
 WebConfiguration getWebConfiguration()
           
protected  void handleException(Executable causeExe, WebObjectSource objSource, ExecuteException exception)
          处理执行异常
protected  void processTarget(Executable executable, WebObjectSource objSource)
          处理可执行对象的目标
 void setWebConfiguration(WebConfiguration webConfiguration)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

WebExecutor

public WebExecutor(WebConfiguration configuration)
方法详细信息

getConfiguration

public Configuration getConfiguration()
从接口 Executor 复制的描述
获取执行器使用的配置对象

指定者:
接口 Executor 中的 getConfiguration
返回:

getWebConfiguration

public WebConfiguration getWebConfiguration()

setWebConfiguration

public void setWebConfiguration(WebConfiguration webConfiguration)

execute

public void execute(java.lang.String exeName,
                    ObjectSource objSource)
             throws ExecuteException,
                    ExecutableNotFoundException
从接口 Executor 复制的描述
执行

指定者:
接口 Executor 中的 execute
参数:
exeName - 可执行对象名称
objSource - 对象源
抛出:
ExecuteException
ExecutableNotFoundException

execute

public void execute(WebObjectSource objSource)
             throws javax.servlet.ServletException,
                    java.io.IOException,
                    ExecutableNotFoundException
执行,它根据请求查找可执行对象并执行对应的动作;如果配置了异常处理器,它还会处理可能出现的异常

参数:
objSource - WEB对象源,你不需要要设置它的通用转换器属性,这个方法会自动设置它
抛出:
javax.servlet.ServletException
java.io.IOException
ExecutableNotFoundException

findRequestExecutable

protected Executable findRequestExecutable(WebObjectSource objSource)
                                    throws ExecutableNotFoundException
查找处理请求的可执行对象execute(WebObjectSource)使用这个方法来确定哪个可执行对象来处理该请求

参数:
objSource -
返回:
抛出:
ExecutableNotFoundException

handleException

protected void handleException(Executable causeExe,
                               WebObjectSource objSource,
                               ExecuteException exception)
                        throws javax.servlet.ServletException,
                               java.io.IOException
处理执行异常

参数:
causeExe - 导致异常的可执行对象
objSource - 执行对象源
exception - 执行异常
抛出:
javax.servlet.ServletException
java.io.IOException

processTarget

protected void processTarget(Executable executable,
                             WebObjectSource objSource)
                      throws javax.servlet.ServletException,
                             java.io.IOException
处理可执行对象的目标

参数:
executable -
objSource -
抛出:
javax.servlet.ServletException
java.io.IOException

getTarget

protected WebAction.Target getTarget(Executable exe)
返回可执行对象的目标,如果没有,则可以返回null(比如调用类并没有定义目标属性)

参数:
exe -
返回: