|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectorg.nutz.lang.util.AbstractContext
org.nutz.lang.util.SimpleContext
org.nutz.mvc.ActionContext
public class ActionContext
Action执行的上下文
构造方法摘要 | |
---|---|
ActionContext()
|
方法摘要 | |
---|---|
java.lang.Throwable |
getError()
获取异常对象 |
Ioc |
getIoc()
获取全局的Ioc对象 |
java.lang.reflect.Method |
getMethod()
获取这个Action对应的Method |
java.lang.Object[] |
getMethodArgs()
获取将要执行Method的参数 |
java.lang.Object |
getMethodReturn()
获取method返回值 |
java.lang.Object |
getModule()
获取将要执行Method的对象 |
java.lang.String |
getPath()
获取当前请求的path,经过去后缀处理 |
java.util.List<java.lang.String> |
getPathArgs()
获取路径参数 |
javax.servlet.http.HttpServletRequest |
getRequest()
获取请求的HttpServletRequest |
javax.servlet.http.HttpServletResponse |
getResponse()
获取请求的HttpServletResponse |
javax.servlet.ServletContext |
getServletContext()
获取ServletContext |
ActionContext |
setError(java.lang.Throwable error)
设置异常对象,一般由ActionChain捕捉到异常后调用 |
ActionContext |
setMethod(java.lang.reflect.Method m)
设置这个Action对应的Method |
ActionContext |
setMethodArgs(java.lang.Object[] args)
|
ActionContext |
setMethodReturn(java.lang.Object re)
|
ActionContext |
setModule(java.lang.Object obj)
|
ActionContext |
setPath(java.lang.String ph)
设置当前请求的path,经过去后缀处理 |
ActionContext |
setPathArgs(java.util.List<java.lang.String> args)
|
ActionContext |
setRequest(javax.servlet.http.HttpServletRequest req)
|
ActionContext |
setResponse(javax.servlet.http.HttpServletResponse resp)
|
ActionContext |
setServletContext(javax.servlet.ServletContext sc)
|
从类 org.nutz.lang.util.SimpleContext 继承的方法 |
---|
clear, clone, get, getInnerMap, has, keys, set, toString |
从类 org.nutz.lang.util.AbstractContext 继承的方法 |
---|
getAs, getBoolean, getFloat, getInt, getList, getMap, getString, putAll, putAll |
从类 java.lang.Object 继承的方法 |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
构造方法详细信息 |
---|
public ActionContext()
方法详细信息 |
---|
public Ioc getIoc()
public java.lang.Throwable getError()
public ActionContext setError(java.lang.Throwable error)
error
- 异常对象
public java.lang.String getPath()
public ActionContext setPath(java.lang.String ph)
ph
- 请求的path,,经过去后缀处理
public java.util.List<java.lang.String> getPathArgs()
public ActionContext setPathArgs(java.util.List<java.lang.String> args)
public java.lang.reflect.Method getMethod()
public ActionContext setMethod(java.lang.reflect.Method m)
m
- 这个Action对应的Method
public java.lang.Object getModule()
public ActionContext setModule(java.lang.Object obj)
public java.lang.Object[] getMethodArgs()
public ActionContext setMethodArgs(java.lang.Object[] args)
public java.lang.Object getMethodReturn()
public ActionContext setMethodReturn(java.lang.Object re)
public javax.servlet.http.HttpServletRequest getRequest()
public ActionContext setRequest(javax.servlet.http.HttpServletRequest req)
public javax.servlet.http.HttpServletResponse getResponse()
public ActionContext setResponse(javax.servlet.http.HttpServletResponse resp)
public javax.servlet.ServletContext getServletContext()
public ActionContext setServletContext(javax.servlet.ServletContext sc)
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |