|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.soybeanMilk.web.WebExecutor
public class WebExecutor
WEB执行器,它将根据WEB请求执行对应的可执行对象
| 构造方法摘要 | |
|---|---|
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 |
| 构造方法详细信息 |
|---|
public WebExecutor(WebConfiguration configuration)
| 方法详细信息 |
|---|
public Configuration getConfiguration()
Executor 复制的描述
Executor 中的 getConfigurationpublic WebConfiguration getWebConfiguration()
public void setWebConfiguration(WebConfiguration webConfiguration)
public void execute(java.lang.String exeName,
ObjectSource objSource)
throws ExecuteException,
ExecutableNotFoundException
Executor 复制的描述
Executor 中的 executeexeName - 可执行对象名称objSource - 对象源
ExecuteException
ExecutableNotFoundException
public void execute(WebObjectSource objSource)
throws javax.servlet.ServletException,
java.io.IOException,
ExecutableNotFoundException
objSource - WEB对象源,你不需要要设置它的通用转换器属性,这个方法会自动设置它
javax.servlet.ServletException
java.io.IOException
ExecutableNotFoundException
protected Executable findRequestExecutable(WebObjectSource objSource)
throws ExecutableNotFoundException
execute(WebObjectSource)使用这个方法来确定哪个可执行对象来处理该请求
objSource -
ExecutableNotFoundException
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
protected void processTarget(Executable executable,
WebObjectSource objSource)
throws javax.servlet.ServletException,
java.io.IOException
executable - objSource -
javax.servlet.ServletException
java.io.IOExceptionprotected WebAction.Target getTarget(Executable exe)
调用类并没有定义目标属性)
exe -
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||