public class NameInjector extends Object implements ParamInjector
限定符和类型 | 字段和说明 |
---|---|
protected String |
defaultValue |
protected DateFormat |
dfmt |
protected Class<?> |
klass |
protected String |
name |
protected Type[] |
paramTypes |
protected Type |
type |
构造器和说明 |
---|
NameInjector(String name,
String datefmt,
Type type,
Type[] paramTypes,
String defaultValue) |
protected String name
protected DateFormat dfmt
protected Class<?> klass
protected Type type
protected Type[] paramTypes
protected String defaultValue
public Object get(javax.servlet.ServletContext sc, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, Object refer)
get
在接口中 ParamInjector
req
- 请求对象resp
- 响应对象refer
- 这个参考字段,如果有值,表示是路径参数的值,那么它比 request 里的参数优先sc
- TODOpublic Object fromReqParam(javax.servlet.http.HttpServletRequest req)
Copyright © 2017. All rights reserved.