|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
public interface SessionConfig
包含session系统的配置。
| 嵌套类摘要 | |
|---|---|
static interface |
SessionConfig.CookieConfig
代表cookie的配置。 |
static interface |
SessionConfig.IdConfig
代表session ID的配置。 |
static interface |
SessionConfig.StoreMappingsConfig
代表store mappings的配置。 |
static interface |
SessionConfig.StoresConfig
代表stores的配置。 |
static interface |
SessionConfig.UrlEncodeConfig
代表url encode的配置。 |
| 字段摘要 | |
|---|---|
static Long |
FORCE_EXPIRATION_PERIOD_DEFAULT
|
static Boolean |
KEEP_IN_TOUCH_DEFAULT
|
static Integer |
MAX_INACTIVE_INTERVAL_DEFAULT
|
static String |
MODEL_KEY_DEFAULT
|
| 方法摘要 | |
|---|---|
long |
getForceExpirationPeriod()
Session强制作废期限(秒)。 |
SessionConfig.IdConfig |
getId()
取得session ID的配置。 |
int |
getMaxInactiveInterval()
Session的最长不活动时间(秒)。 |
String |
getModelKey()
代表session model在session中被保存的键值。 |
SessionInterceptor[] |
getSessionInterceptors()
取得用来监听session行为的interceptors。 |
SessionModelEncoder[] |
getSessionModelEncoders()
取得model encoders。 |
SessionConfig.StoreMappingsConfig |
getStoreMappings()
取得所有store mappings。 |
SessionConfig.StoresConfig |
getStores()
取得所有stores。 |
boolean |
isKeepInTouch()
是否每次请求都touch session。 |
| 字段详细信息 |
|---|
static final Integer MAX_INACTIVE_INTERVAL_DEFAULT
static final Long FORCE_EXPIRATION_PERIOD_DEFAULT
static final String MODEL_KEY_DEFAULT
static final Boolean KEEP_IN_TOUCH_DEFAULT
| 方法详细信息 |
|---|
int getMaxInactiveInterval()
0表示永不过期。
long getForceExpirationPeriod()
0表示永不作废。
String getModelKey()
boolean isKeepInTouch()
false,只在session值有改变时touch。当将session
model保存在cookie store中时,这样做可以减少流量。
SessionConfig.IdConfig getId()
SessionConfig.StoresConfig getStores()
SessionConfig.StoreMappingsConfig getStoreMappings()
SessionModelEncoder[] getSessionModelEncoders()
SessionInterceptor[] getSessionInterceptors()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||