| 构造器和说明 |
|---|
HttpSession() |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> T |
attribute(String name)
Get current session attribute by name
|
void |
attribute(String name,
Object value)
Set current session attribute
|
Map<String,Object> |
attributes()
Get current session attributes
|
long |
created()
Get current session create unix time.
|
void |
created(long created)
Set session created unix time
|
long |
expired()
Get current session expired unix time.
|
void |
expired(long expired)
Set session expired unix time
|
String |
id()
Get current session id
|
void |
id(String id)
Set session id
|
String |
ip()
Get current session client ip address
|
void |
ip(String ip)
Set current session client ip address
|
void |
removeAttribute(String name)
Remove current session attribute
|
public <T> T attribute(String name)
Sessionpublic void attribute(String name, Object value)
Sessionpublic Map<String,Object> attributes()
Sessionattributes 在接口中 Sessionpublic void removeAttribute(String name)
SessionremoveAttribute 在接口中 Sessionpublic long created()
Sessionpublic void created(long created)
Sessionpublic long expired()
SessionCopyright © 2018. All rights reserved.