org.soybeanMilk.web
类 WebExecutor

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

public class WebExecutor
extends DefaultExecutor

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

作者:
earthAngry@gmail.com

嵌套类摘要
 
从类 org.soybeanMilk.core.DefaultExecutor 继承的嵌套类/接口
DefaultExecutor.InterceptorException
 
构造方法摘要
WebExecutor(Configuration configuration)
           
 
方法摘要
 Executable execute(java.lang.String exeName, ObjectSource objSource)
          执行,并返回对应的可执行对象
 void execute(WebObjectSource objSource)
          执行。
static void processTarget(Executable executable, WebObjectSource objSource)
          处理可执行对象的目标
 
从类 org.soybeanMilk.core.DefaultExecutor 继承的方法
getConfiguration, setConfiguration
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

WebExecutor

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

execute

public Executable execute(java.lang.String exeName,
                          ObjectSource objSource)
                   throws ExecuteException,
                          ExecutableNotFoundException
从接口 Executor 复制的描述
执行,并返回对应的可执行对象

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

execute

public void execute(WebObjectSource objSource)
             throws javax.servlet.ServletException,
                    java.io.IOException,
                    ExecutableNotFoundException
执行。它的核心处理逻辑与execute(String, ObjectSource)一样, 只不过它会把HttpServletRequest.getServletPath()返回的字符串作为可执行对象名, 并且它还会处理可能的目标分发。

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

processTarget

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

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