public class ActionContext extends SimpleContext
构造器和说明 |
---|
ActionContext() |
限定符和类型 | 方法和说明 |
---|---|
Throwable |
getError()
获取异常对象
|
Ioc |
getIoc()
获取全局的Ioc对象
|
Method |
getMethod()
获取这个Action对应的Method
|
Object[] |
getMethodArgs()
获取将要执行Method的参数
|
Object |
getMethodReturn()
获取method返回值
|
Object |
getModule()
获取将要执行Method的对象
|
String |
getPath()
获取当前请求的path,经过去后缀处理
|
List<String> |
getPathArgs()
获取路径参数
|
javax.servlet.http.HttpServletRequest |
getRequest()
获取请求的HttpServletRequest
|
javax.servlet.http.HttpServletResponse |
getResponse()
获取请求的HttpServletResponse
|
javax.servlet.ServletContext |
getServletContext()
获取ServletContext
|
String |
getSuffix() |
ActionContext |
setError(Throwable error)
设置异常对象,一般由ActionChain捕捉到异常后调用
|
ActionContext |
setMethod(Method m)
设置这个Action对应的Method
|
ActionContext |
setMethodArgs(Object[] args) |
ActionContext |
setMethodReturn(Object re) |
ActionContext |
setModule(Object obj) |
ActionContext |
setPath(String ph)
设置当前请求的path,经过去后缀处理
|
ActionContext |
setPathArgs(List<String> args) |
ActionContext |
setRequest(javax.servlet.http.HttpServletRequest req) |
ActionContext |
setResponse(javax.servlet.http.HttpServletResponse resp) |
ActionContext |
setServletContext(javax.servlet.ServletContext sc) |
ActionContext |
setSuffix(String suffix) |
String |
toString() |
clear, clone, get, getInnerMap, has, keys, set, size
public Ioc getIoc()
public Throwable getError()
public ActionContext setError(Throwable error)
error
- 异常对象public String getPath()
public ActionContext setPath(String ph)
ph
- 请求的path,,经过去后缀处理public String getSuffix()
public ActionContext setSuffix(String suffix)
public ActionContext setPathArgs(List<String> args)
public Method getMethod()
public ActionContext setMethod(Method m)
m
- 这个Action对应的Methodpublic Object getModule()
public ActionContext setModule(Object obj)
public Object[] getMethodArgs()
public ActionContext setMethodArgs(Object[] args)
public Object getMethodReturn()
public ActionContext setMethodReturn(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)
public String toString()
toString
在类中 SimpleContext
Copyright © 2017. All rights reserved.