构造器和说明 |
---|
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)
Session
public void attribute(String name, Object value)
Session
public Map<String,Object> attributes()
Session
attributes
在接口中 Session
public void removeAttribute(String name)
Session
removeAttribute
在接口中 Session
public long created()
Session
public void created(long created)
Session
public long expired()
Session
Copyright © 2018. All rights reserved.