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
| 从类 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