public static class RequestContext.SimpleRequestContext extends Object implements RequestContext
RequestContext.SimpleRequestContext| 构造器和说明 |
|---|
SimpleRequestContext() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clearAllAttribute()
clear all attribute from context
|
<T> T |
getAttribute(String name)
get attribute from context
|
<T> T |
getAttribute(String name,
T defValue)
get attribute from context, if null then return defValue
|
<T> T |
removeAttribute(String name)
remove attribute from context
|
<T> RequestContext |
setAttribute(String name,
T value)
set attribute to context
|
public <T> RequestContext setAttribute(String name, T value)
RequestContextsetAttribute 在接口中 RequestContextname - attribute namevalue - attribute valuepublic <T> T getAttribute(String name)
RequestContextgetAttribute 在接口中 RequestContextname - attribute namepublic <T> T getAttribute(String name, T defValue)
RequestContextgetAttribute 在接口中 RequestContextname - attribute namedefValue - default valuepublic <T> T removeAttribute(String name)
RequestContextremoveAttribute 在接口中 RequestContextname - attribute namepublic void clearAllAttribute()
RequestContextclearAllAttribute 在接口中 RequestContextCopyright © 2019. All rights reserved.