public interface RequestContext
| 限定符和类型 | 接口和说明 |
|---|---|
static class |
RequestContext.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
|
<T> RequestContext setAttribute(String name, T value)
name - attribute namevalue - attribute value<T> T getAttribute(String name)
name - attribute name<T> T getAttribute(String name, T defValue)
name - attribute namedefValue - default value<T> T removeAttribute(String name)
name - attribute namevoid clearAllAttribute()
Copyright © 2019. All rights reserved.